Gossamer Forum
Home : General : Perl Programming :

Money regex...

Quote Reply
Money regex...
Hi...I'm trying to work out some regex for my upcoming PHP PPC Plugin to work with page.php. However, I need to add a new field, with the regex that allows 3 digits in front, and 3 last digits, with a . seperating them (i.e. a money format). At the moment I have;

^\d{1,3}\.\d{,2}$

However, this isn't working. What am I doing wrong?

Thanks

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!