Need RegEx Pattern to prevent '<' character and '&#' combination

Posted by Bhavanib under Regular Expressions on 11/5/2012 | Points: 10 | Views : 2074 | Status : [Member] | Replies : 1
Friends,

we need a Regular Expression to prevent the following character
The input string does not have any '<' character and '&#' combination.
Please provide with a regex to restrict those above characters.

Thanks
sandhya.




Responses

Posted by: Seng2hs on: 11/5/2012 [Member] Starter | Points: 25

Up
0
Down
Regex for your requirment follows below

^[^<][^&][^#]*$

Thanks




Bhavanib, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response