commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26199] - [validator] Change regex in mask so ^ and $ not required at start/end
Date Wed, 11 Feb 2004 10:52:50 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26199>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26199

[validator] Change regex in mask so ^ and $ not required at start/end





------- Additional Comments From niall.pemberton@blueyonder.co.uk  2004-02-11 10:52 -------
I haven't used 1.4 regexp - but when this was being discussed on the mailing 
list David Graham mentioned that ORO worked different from 1.4 regexp in this 
respect - perhaps he would confirm this.

I tried out the javascript and without the 'anchors' invalid data in the field 
passes validation. I found this site http://www.regular-
expressions.info/anchors.html which says they are needed, otherwise it is doing 
a 'contains' rather than 'matches' type check.

Having said all that, I think this is still a valid change. My change doesn't 
stop regular expressions with the ^ and $ characters from working - they still 
work fine, but if this change is implemented, then for server side the mask 
validations will also work if you don't put them in. Isn't this a win win 
situation?

Niall


Niall

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message