T
tshad
I have a regular expression I am using in C that does seem to work for
dollar signs.
stemp = Regex.Replace(String.Format("{0:c}",dr["Amount"]),"$|,","");
This takes out the "," fine, but not the "$". $6,150.00 is coming back as
$6150.00.
In VB.Net, I would do:
stemp = Regex.Replace(String.Format("{0:c}",dr["Amount"]),"\$|\,","");
But that would give me an unrecognized escape sequence, in C#.
How do I do this in C#?
Thanks,
Tom
dollar signs.
stemp = Regex.Replace(String.Format("{0:c}",dr["Amount"]),"$|,","");
This takes out the "," fine, but not the "$". $6,150.00 is coming back as
$6150.00.
In VB.Net, I would do:
stemp = Regex.Replace(String.Format("{0:c}",dr["Amount"]),"\$|\,","");
But that would give me an unrecognized escape sequence, in C#.
How do I do this in C#?
Thanks,
Tom