Perl RegEx - VB.NET equivalent?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

I'm porting a peice of Perl code and it has the following regex:

$text2Check =~ s/\x0D\x0A|\r/\n/g;

I'm confused about the s/ and /\n/g.

Anyone know what the equivalent is for .NET?
 
Hi all,

I'm porting a peice of Perl code and it has the following regex:

$text2Check =~ s/\x0D\x0A|\r/\n/g;


Found an article online which describes this clearly :)

substitute (s/) \x0d\x0a OR \r for \n anywhere in the line (/g)
 
Back
Top