tphyahoo has asked for the wisdom of the Perl Monks concerning the following question:
Prices can have dot decimal with comma thousands separator, comma decimal with dot thousands separator, or no thousands separator at all. Maybe even no decimal. Since these are prices I'm expecting a currency, but sometimes this is missing so I'm not checking for that.
I'm cranking out a regex to do this, and tests to verify that everything works but... maybe a regex for this exists already? Something like Regexp::Common::Number::Promiscuous... ???
I didn't say anything in regexp common or googling around, but just in case I missed something, thought I would ask the monks.
Thanks if anyone can help :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Promiscuously match what might be prices
by diotalevi (Canon) on Apr 10, 2006 at 14:29 UTC | |
by tphyahoo (Vicar) on Apr 10, 2006 at 16:03 UTC | |
by diotalevi (Canon) on Apr 10, 2006 at 18:45 UTC |