> 3 digits optional "," and if there is a comma 2 digits

Maybe this?

\d{3}(?:,\d{2})?


\d{3} - Three digits
(?:,\d{2})? - An optional comma plus 2 more digits


Rob

-----Original Message-----
From: Alexander [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 10:55 AM
To: [EMAIL PROTECTED]
Subject: help to newbie


regexp for
3 digits optional "," and if there is a comma 2 digits
I've tried this but it simply didn't work "\\d{1,3}[.,]?\\d{0,2}"


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to