Regex Question

  • Thread starter Thread starter mavrick_101
  • Start date Start date
M

mavrick_101

Hi,

I'm trying to validate user input for a text field.

I do not want them to enter special characters like <, > ! @ etc.

How can I do that using Regex.

Thnx for your help.
 
Hi,

I'm trying to validate user input for a text field.

I do not want them to enter special characters like <, > ! @ etc.

How can I do that using Regex.

Thnx for your help.

Use this

^\w*$

This would allow only 0..9 and a..zA..Z (\*)

^ means beginning of the word, $ - end
 
Back
Top