Re: [struts] [S1.3]Strange problem with validation.xml's Regex

2007-11-08 Thread Dale Newfield
Dale Newfield wrote: enthucoder wrote: I am validating a condition : Input should not contain any of these characters &,",<,>,%,(,) And to achieve this my RegEx is : ^[^(\&|"|<|>|%|\(|\))]+$ > That should be: ^["&<>%()]*$ D'oh! That should be: ^[^"&<>%()]*$ -Dale -

Re: [struts] [S1.3]Strange problem with validation.xml's Regex

2007-11-08 Thread Dale Newfield
enthucoder wrote: I am validating a condition : Input should not contain any of these characters &,",<,>,%,(,) And to achieve this my RegEx is : ^[^(\&|"|<|>|%|\(|\))]+$ That should be: ^["&<>%()]*$ (using + instead of * at the end adds the restriction that the field must contain at least