Changing this regualr expression to allow @

Posted on 2012-09-11
Last Modified: 2012-09-11
I found this link

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

Open in new window

Question by:Camillia
    LVL 10

    Expert Comment

    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)?
    LVL 7

    Author Comment

    if min is 6 characters, howcome it has 5, instead of 6? [A-Za-z][A-Za-z0-9@._]{5,14}
    LVL 10

    Accepted Solution

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
    In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now