You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Joao Batistella <jo...@ptinovacao.pt> on 2004/03/24 19:33:27 UTC
Struts validator Regular Expressions
Hello!
Do you know any document where can I learn how to build regular expressions
for Struts Validator?
I need to validate an IP address and I don't know how is the syntax in the
validator config file.
Thanks,
JP
Re: Struts validator Regular Expressions
Posted by Frank Schaare <lo...@gmx.de>.
Hi,
this should be very close to \d{1,3}[.]\d{1,3}[.]\d{1,3}[.]\d{1,3}
> I need to validate an IP address and I don't know how is the syntax in the
> validator config file.
take your time to study this:
http://java.sun.com/docs/books/tutorial/extra/regex/
It's worth the trouble, regex rox !
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org