Regular Expression in C#
-
Hi guys,
I wanna remove ^/* */ comments^ from a text.
I know in Perl one can write the regular expression like this
$fileContent =~ s/\/\*.*?\*\///gs;
Anyone kown how it looks like in C#.
Any help is appreciated
-
-
simon.gysi schrieb:
http://www.google.ch/search?hl=de&q=c%23+regex&meta=
http://www.gidf.dei hope u know what means interactive
such kind of answer i have never got before. Really make me sad.
Hope someone can give some useful tips.
-
However, his pointer should have been helpful. 'regex' is the cue in this context: C# provides similar functionality as Perl by means of the 'Regex' class, as should have been obvious by the Google hits.