Regular expression - no special characters

I use regex to verify username

^[a-zA-Z]+\.[a-zA-Z]{4,10}^'

Unfortunately, this does not affect if the value contains special characters, such as !@#$%^&*)(':;

I would be happy to receive help for Regex, which contains:

  • Alphanumeric Only ( a-zA-Z0-9)
  • Length between 4 - 10 characters.
+5
source share
2 answers

The conditions you specified do not match the regular expression that you specified.

regexp, ^[a-zA-Z]+\.[a-zA-Z]{4,10}^, , , - ^ , ^ , : \^. ^ " ", $ " ".

, :

  • ( 1).
  • . .
  • 4 .

:

^[a-zA-Z0-9]{4,10}$

:

  • - .
  • 4 10 -.
  • .
+18

:

^[a-zA-Z0-9]{4,10}$

+5

All Articles