D
Dilip
I am using the .NET regular expressions library to match anything that
resembles a price/amount (33.33, 225.44 etc) out of a stream. I have
this pattern with me currently:
\d+(\.\d*)?
This doesn't match the string as one full word. IOW, I want the regex
to match a dollar amount in its entirety (any number of digits before
the decimal point but only 2 digits after the decimal). I am a total
newbie to Regex and the best I came up with matches even things like
33a.67b (i.e it matches the 33 and 67 in that string whereas I want to
ignore that case completely).
Can someone help?
resembles a price/amount (33.33, 225.44 etc) out of a stream. I have
this pattern with me currently:
\d+(\.\d*)?
This doesn't match the string as one full word. IOW, I want the regex
to match a dollar amount in its entirety (any number of digits before
the decimal point but only 2 digits after the decimal). I am a total
newbie to Regex and the best I came up with matches even things like
33a.67b (i.e it matches the 33 and 67 in that string whereas I want to
ignore that case completely).
Can someone help?