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
-
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
2 matches
Mail list logo