[Opensource] regular expression

Manish, Jain (J.) jmanish1 at ford.com
Thu Mar 25 22:51:24 PST 2004


Hi,
Please deocode the given (RE)Regular Expression
^[A-Za-z0-9\&\'\(\)\-\.\"\\s]*$ , so that i can use this RE in the
validation.xml of STRUTS for the inbuilt "mask" validator of
validator-rules.xml.

Or in otherwords, please help me in writing the REGULAR EXPRESSION such
that a text field can contain only the following 
Characters:
1) Any alpha-numeric (A-Z, a-z, or 0-9)
2) Space
3) &
4) ' (single quote)
5) ( (open c brackets)
6) ) (close c brackets)
7) - (dash)
8) . (period)
9) " (double quote)

If you help me writing this RE, then I can use this RE in the
validation.xml of STRUTS for validation purpose.

Thanks and Regards,
Manish Jain.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.jcorporate.com/pipermail/opensource/attachments/20040326/c7d33486/attachment.htm


More information about the Opensource mailing list