I'm trying to figure out with linq
and regex
method, to remove all alphabetic and numeric characters and keep only punctuation marks in string:
string input = ": hello; world; 2019>how?.are,you. .i'm good}and-you[?ok";
to split in output list for each mark not divided by char or number in same string:
:
;
;
>
?.
,
..
'
}
-
[?
Any guide or example would be helpful