470,596 Members | 1,347 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,596 developers. It's quick & easy.

Restrict '\' character using RegularExpression Validator..

Hi everybody,

How do restrict entering these characters <>\"%';()& and telling user
these caharcters are not allowed to be enter in the textbox field using
RegularExpression Validator? I put in the Validation Expression property
[^<>\"'%;()&]. It restrict every character execpt 0 to 9. How to fixed this?

I used [^<>\"'%;()&]+ in validation Expression property of Regular
Expression Validator Control. All are working except when entering the
character \, which suppose to restrict it. How to restrict '\' character?
Thanks.

den2005
--
MCP Year 2005, Philippines
May 10 '06 #1
2 2085
This problem has been resolved.
den2005
--
MCP Year 2005, Philippines
"den 2005" wrote:
Hi everybody,

How do restrict entering these characters <>\"%';()& and telling user
these caharcters are not allowed to be enter in the textbox field using
RegularExpression Validator? I put in the Validation Expression property
[^<>\"'%;()&]. It restrict every character execpt 0 to 9. How to fixed this?

I used [^<>\"'%;()&]+ in validation Expression property of Regular
Expression Validator Control. All are working except when entering the
character \, which suppose to restrict it. How to restrict '\' character?
Thanks.

den2005
--
MCP Year 2005, Philippines

May 10 '06 #2
den 2005 wrote:
This problem has been resolved.
den2005

Would you like to share your solution in the instance someone else has
the same problem?

Regards
Ray
May 10 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

38 posts views Thread by Haines Brown | last post: by
9 posts views Thread by Safalra | last post: by
5 posts views Thread by Randall Parker | last post: by
1 post views Thread by Nicola Farina | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.