Changing this regualr expression to allow @

I found this link

http://stackoverflow.com/questions/5260379/regular-expression-for-username

I want to change the regular expression to allow for @
is this correct?
[A-Za-z][A-Za-z0-9@._]{5,14} 

Open in new window

LVL 8
CamilliaAsked:
Who is Participating?
 
mark_harris231Connect With a Mentor Commented:
The first set of brackets takes care of the 1st character  [A-Za-z]

The remaining characters (2nd - 15th) are covered by the next set.
0
 
mark_harris231Commented:
That is correct.  Did you try it and not get the desired results?  Are all the other conditions the same (i.e., 6-15 characters, always starts with an alphabetic character)?
0
 
CamilliaAuthor Commented:
if min is 6 characters, howcome it has 5, instead of 6? [A-Za-z][A-Za-z0-9@._]{5,14}
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.