On Thu, 27 Feb 2003 16:55:14 +0100, Alexander wrote:
> regexp for
> 3 digits optional "," and if there is a comma 2 digits
Following this description, it's
/\d\d\d(,\d\d)?/
> I've tried this but it simply didn't work "\\d{1,3}[.,]?\\d{0,2}"
while seeing this one, it could be you meant:
/\d{1,3}([.,]\d{0,2})?/
However, there are two main problems in your trial:
First it seems to be wrong to escape the backslash,
as \\d is very different from \d.
Second, the optional , followed (if necessary) by digits is best expressed
completely as one optional group ([.,]\d{0,2})?
Best Wishes,
Janek
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]