Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Regular Expression

Regular Expression

Scheduled Pinned Locked Moved Web Development
tutorialregexhelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pssuresh
    wrote on last edited by
    #1

    Thanks to reply for the previous question.I need regular expression for the following questions. 1.I need to accept e-mail address for user name.Which can accepts letter,numbers,".","@". How to do regular expression for this... 2.I need to accept only letters, numbers.i tried this one. ^([0-9]*[a-z]*[A-Z]*)$, but it is giving error in some case.one of the example is "dfdfdfdf1234", it generates error on entering this value. Suresh.P.S

    G 1 Reply Last reply
    0
    • P pssuresh

      Thanks to reply for the previous question.I need regular expression for the following questions. 1.I need to accept e-mail address for user name.Which can accepts letter,numbers,".","@". How to do regular expression for this... 2.I need to accept only letters, numbers.i tried this one. ^([0-9]*[a-z]*[A-Z]*)$, but it is giving error in some case.one of the example is "dfdfdfdf1234", it generates error on entering this value. Suresh.P.S

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      1. Here's one that I use: "^[a-z][\w\.\-%~]*@[\w\.\-]+\.[a-z]{2,4}$". It's based on the standard for e-mail addresses, but it might be a bit more strict than you want, as some people have e-mail addresses that doesn't conform to the standard. 2. Put the ranges in the same set: "^([0-9a-zA-Z]*)$". --- b { font-weight: normal; }

      L 1 Reply Last reply
      0
      • G Guffa

        1. Here's one that I use: "^[a-z][\w\.\-%~]*@[\w\.\-]+\.[a-z]{2,4}$". It's based on the standard for e-mail addresses, but it might be a bit more strict than you want, as some people have e-mail addresses that doesn't conform to the standard. 2. Put the ranges in the same set: "^([0-9a-zA-Z]*)$". --- b { font-weight: normal; }

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        http://regxlib.com/CheatSheet.aspx[^], also you could try this application "RegexDesigner.Net" from http://www.sellsbrothers.com/[^]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups