Changing this regualr expression to allow @

I found this link

I want to change the regular expression to allow for @
is this correct?

Open in new window

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.
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)?
CamilliaAuthor Commented:
if min is 6 characters, howcome it has 5, instead of 6? [A-Za-z][A-Za-z0-9@._]{5,14}
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.