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 one character).

The other problem you're having is that you're putting this in an XML document. Either it must be valid XML (for example, & -> &amp;), or it must be enclosed in a CDATA block.

-Dale

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

Reply via email to