RE: Struts validator Regular Expressions

2004-03-24 Thread Takhar, Sandeep
don't quote me but the javadocs for jakarta's regular expression's RE class are ok.

Also I believe everything is based on jakarta's oro.

sandeep

-Original Message-
From: Joao Batistella [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 1:33 PM
To: 'Struts Users Mailing List'
Subject: 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

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



Re: Struts validator Regular Expressions

2004-03-24 Thread Frank Schaare
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts validator Regular Expressions

2004-03-24 Thread Niall Pemberton
Validator does use ORO - There is an applet you can play with to test your
regexp:

http://jakarta.apache.org/oro/demo.html

Choose the contains option and start/end your regular expressions with ^
and $

Niall

- Original Message - 
From: Takhar, Sandeep [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 6:52 PM
Subject: RE: Struts validator Regular Expressions


don't quote me but the javadocs for jakarta's regular expression's RE class
are ok.

Also I believe everything is based on jakarta's oro.

sandeep

-Original Message-
From: Joao Batistella [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 1:33 PM
To: 'Struts Users Mailing List'
Subject: 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

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





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



RE: Struts validator Regular Expressions

2004-03-24 Thread Janarthan Sathiamurthy
Hi,

This is a good one to get started -
http://weblogtoolscollection.com/regex/regex.php

Best Regards,
Janarthan S

-Original Message-
From: Joao Batistella [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 12:03 AM
To: 'Struts Users Mailing List'
Subject: 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

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