Regular expression to exclude special characters

  • Thread starter Thread starter RJN
  • Start date Start date
R

RJN

Hi

I want to use regularexpression validator for a text box . I want the
entered value to have only alphanumeric , space, underscrore and -

In VB I used something like this. [^\sa-zA-Z0-9_-].
Same doesn't seem to work in ASP.Net

Any help please?

Thanks

Rjn
 
Back
Top