Tuesday, 10 September 2013

how to create a reguar expression to check string doens't contain > < characters

how to create a reguar expression to check string doens't contain \ > <
characters

I have to create a regular expression to check if the string contains only
digits, alphabets and other symbols except \ > <. I am able to create for
digits and alphabets. I have tried with [^\<>] to check if string doesn't
contain \ > < special characters.
But it did't work. Can someone please suggest how it an be done.
Edit:
Might me be a simple question, but I am just starting with regx.

No comments:

Post a Comment