Peng, Meimin wrote:
Thanks.

I just make it work by doing this.

<var-value>^[0-9a-zA-Z-\-]*$</var-value>

I couldn't find info on any strut books. But, here is the original
validation package. Cheers!

http://jakarta.apache.org/regexp/apidocs/org/apache/regexp/RE.html


That will allow any number of '-' signs to be valid:

'------'
'a-------b'
'398-439-4381'
'39123951283--------------------'

will all be valid inputs.

Is that what you want, or do you want something like a serial number with any size fields, like:

dd-dddd-dddd-ddddd-ddd
ddddd-dd-dddd-ddd
dddd-ddddd-dddd

(where 'd' is any hex digit).

-- Jeff

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to