Re: Regex works in Java but not in Struts Validator

2006-01-23 Thread Brett Connor
Dave Newton wrote: Replied to list. rama chandrula wrote: I have the following Regex in Java [A-Za-z0-9]+([_.*-]?[A-Za-z0-9]+)[EMAIL PROTECTED]([.-]?[A-Za-z0-9]+)* Any tips to convert so that it will work with ORO. Yes; use the 'email' built-in validator rule from commons-validator.

Re: Regex works in Java but not in Struts Validator

2006-01-23 Thread Dave Newton
Replied to list. rama chandrula wrote: > I have the following Regex in Java > [A-Za-z0-9]+([_.*-]?[A-Za-z0-9]+)[EMAIL PROTECTED]([.-]?[A-Za-z0-9]+)* > > Any tips to convert so that it will work with ORO. Yes; use the 'email' built-in validator rule from commons-validator. Other than that, I am im

Re: Regex works in Java but not in Struts Validator

2006-01-23 Thread Dave Newton
rama chandrula wrote: > I have a regex as given below that works with Java 1.5, But when I use > the same as the maxk value in Struts-Validator it does not work. Can > anyone point out the reason I don't see a regular expression. IIRC Validator uses ORO for its regexes which may not be exactly the

Regex works in Java but not in Struts Validator

2006-01-23 Thread rama chandrula
Hi, I have a regex as given below that works with Java 1.5, But when I use the same as the maxk value in Struts-Validator it does not work. Can anyone point out the reason Regards, chandra _ Sexy, sultry, sensuous. - see why Bip