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] New: - [Validator][PATCH] Change RegExp in mask so ^ and $ not required at start/end
Date Fri, 16 Jan 2004 17:43:57 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][PATCH] Change RegExp in mask so ^ and $ not required at start/end

           Summary: [Validator][PATCH] Change RegExp in mask so ^ and $ not
                    required at start/end
           Product: Commons
           Version: Nightly Builds
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validator
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: niall.pemberton@blueyonder.co.uk


Currently the "mask" validation uses ORO's contains() method to validate a 
value against a pattern. To get this to work users have to put a ^ at the start 
of the RegExp pattern and $ at the end.

This change switches to use ORO's matches() method, which means the ^ and $ are 
not required.

This change is however backward compatible and expressions with the symbols ^ 
and $ will continue to work.

---------------------------------------------------------------------
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