RegExp Money Validator
Posted on 2004-04-29
I have been messing around with it, but I can't seem to come up with a working validator. This shouldn't be too hard. I just need it to validate an entry of money in millions. (MUST be in millions.)
The format is this: 124.5 M or 124.5M
It needs to allow up to 3 digits, then REQUIRES a decimal and REQUIRES one digit after the decimal, and then a space is OPTIONAL (needs to accept both ways). All of this is followed by a REQUIRED 'M'
If someone could help me out with this, i'd really appreciate it. It's a nagging task...