[Mono-list] C# Regular Expressions Help Urgent
LaVey
LaVey" <lavey@pacific.net.sg
Sat, 9 Aug 2003 18:15:51 +0800
This is a multi-part message in MIME format.
------=_NextPart_000_007E_01C35EA2.44367B80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
hi there...
I am having problems replacing the following string...
string str_Content=3D"The day is [so bad] for me";
str_Content =3D Regex.Replace(str_Content,"[so Bad]","[new replace =
string]",RegexOptions.IgnoreCase);
how do I replace my "[so bad]" to "[new replace string]"
regards,
Nigil
------=_NextPart_000_007E_01C35EA2.44367B80
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>hi there...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I am having problems =
replacing the=20
following string...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>string str_Content=3D"The day is [so =
bad] for=20
me";</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>str_Content =3D <FONT=20
size=3D2>Regex.Replace(str_Content,"[so Bad]","[new replace =
string]"<FONT=20
face=3DArial =
size=3D2></FONT>,RegexOptions.IgnoreCase);</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>how do I replace my "[so bad]" to "[new =
replace=20
string]"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Nigil</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_007E_01C35EA2.44367B80--