Heya, Kang.
Regular expressions are very good at *describing* strings.
So how do you describe a currency amount?
Well, you have some kind of currency symbol, depending on the currency.
Then you have a bunch of numbers. There might be commas or spaces between sets of three numbers.
Then you have a decimal of some kind. Maybe a dot, or maybe a comma, depending, again, on the currency.
Next, you have (traditionally) two numbers, though this depends on the currency.
Finally, some currencies have a suffix of some kind.
So we'd be looking at something like this for USD:
/\$\d{1,2}(,?\d{3})*\.\d{2}/
Now, you probably don't want to get that intricate, so this will probably suffice:
/\d*\.\d{2}/
Which is any number of numbers (or no numbers at all), then a decimal, and then finally two numbers.
You could modify the regular expression if you wanted to make the 'cents' portion optional:
/\d+(\.\d{2})?/ or /\d*(\.\d{2})?/
The difference between the two is that the first one requires at least one number before the decimal (so '2', '2.67' and '0.67' would be valid, but '.67' would not).
The second one makes the leading number optional (so that '.67' would also be valid, but so would '').
Have fun.