Check out http://home.earthlink.net/~dwinterfeldt/index.html for the new changes, but
you might want to try:
<constant>
<constant-name>zip</constant-name>
<constant-value>^\d{5}(-\d{4})?$</constant-value>
</constant>
(insert your regex)
-Devin
-----Original Message-----
From: Darren Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 12:06 PM
To: 'Struts Users Mailing List'
Subject: [OT] Regular Expression for Validator
I suck.
I'm trying to come up with a reg expr for a Canadian Postal Code
(ie. M6P 3G6 .. or .. M6P3G6 )
I've got ...
<constant name="zip" value="^([A-Za-z]\d[A-Za-z]( |-)\d[A-Za-z]\d)$" />
IS THIS NOT RIGHT?
Darren.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>