xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Etienne Roy" <e...@us.ibm.com>
Subject RE: regexp validation with XercesJ
Date Fri, 27 Apr 2001 22:01:24 GMT

Thanks a lot, that really helps ;-)



In your second example the "[0-9]+" part will match one-or-more digits.
Both "1" and "1.23" start with one-or-more digits so that expression
matches.  That's it.  The fact that there are more characters after the "1"
part of "1.23" means the pattern failed to match ALL of the data.

Here is another (simpler?) version of your first pattern:

([0-9]*\.)?[0-9]+

Thanks again, I'm going to use that one.

Regards

--
Etienne




---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message