asp.net RegularExpressionValidator not working in mulitline textbox -


i using regularexpressionvalidator stop user using apostrophe (symbol '). working fine in single line textbox. shows error message when user uses enter key new line. validationexpression using is:validationexpression="^(?:(?!['].))*$"

and code:   errormessage="you not allowed use apostorphene" controltovalidate="tbdrivinglicenseother"
validationexpression="^(?:(?!['].))*$">

can not find solution anywhere on web. can help?

it isn't clear me, trying prevent along apostrophs current regex... following expression:

validationexpression="^[^']*$" 

prevents input of apostrophes in both textbox , multi-line textbox.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -