Skip to main content

I am trying to write a validation pattern that would allow any alpha numeric and the special characters of the dash and underscore.

 

I am able to allow the underscore with this pattern

^^a-z A-Z 0-9 _]+$

 

But I cannot figure out how to get it to take the dash.

 

Conversely all I need to due is elminate certain specific characters so that night be easier.

 

Any help appreciated.

Dear,

 

to use dash in your pattern add - 

 

 


Reply