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. ASP.NET
  4. Regular expression for 3 character alphanumeric string separated by _

Regular expression for 3 character alphanumeric string separated by _

Scheduled Pinned Locked Moved ASP.NET
regexhelp
7 Posts 5 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.
  • S Offline
    S Offline
    Shaista Shafiq
    wrote on last edited by
    #1

    hi well i am looking for the expression validator for this kind of string aa1_aa2_aaa if anyone could help......

    N M G 3 Replies Last reply
    0
    • S Shaista Shafiq

      hi well i am looking for the expression validator for this kind of string aa1_aa2_aaa if anyone could help......

      N Offline
      N Offline
      nyeboy
      wrote on last edited by
      #2

      You could search about Regular Expression.It is simple.

      studing is processing in this life.

      1 Reply Last reply
      0
      • S Shaista Shafiq

        hi well i am looking for the expression validator for this kind of string aa1_aa2_aaa if anyone could help......

        M Offline
        M Offline
        manishmahajan
        wrote on last edited by
        #3

        hi, try this one. ^(([a-zA-Z\d]{3}_){2})([a-zA-Z\d]{3}) It will check for aplhanumeric strings seperated. Can U give more examples of the type of string you want? Hope to be of help. take care mani

        1 Reply Last reply
        0
        • S Shaista Shafiq

          hi well i am looking for the expression validator for this kind of string aa1_aa2_aaa if anyone could help......

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

          Do you mean that the first two should end with a digit: ([a-z]{2}\d_){2}[a-z]{3} or that the first two can contain digits: ([a-z\d]{3}_){2}[a-z]{3} or that all three can contain digits: ([a-z\d]{3}_){2}[a-z\d]{3} ?

          Despite everything, the person most likely to be fooling you next is yourself.

          M 1 Reply Last reply
          0
          • G Guffa

            Do you mean that the first two should end with a digit: ([a-z]{2}\d_){2}[a-z]{3} or that the first two can contain digits: ([a-z\d]{3}_){2}[a-z]{3} or that all three can contain digits: ([a-z\d]{3}_){2}[a-z\d]{3} ?

            Despite everything, the person most likely to be fooling you next is yourself.

            M Offline
            M Offline
            Muneeb R Baig
            wrote on last edited by
            #5

            You can search for Regular Expressions here: Regex Lib[^]

            -muneeb A thing of beauty is the joy forever.

            G 1 Reply Last reply
            0
            • M Muneeb R Baig

              You can search for Regular Expressions here: Regex Lib[^]

              -muneeb A thing of beauty is the joy forever.

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

              I don't need to search for a regular expression. You should reply to the original post.

              Despite everything, the person most likely to be fooling you next is yourself.

              M 1 Reply Last reply
              0
              • G Guffa

                I don't need to search for a regular expression. You should reply to the original post.

                Despite everything, the person most likely to be fooling you next is yourself.

                M Offline
                M Offline
                Muneeb R Baig
                wrote on last edited by
                #7

                Sorry, I don't want to hurt you. Infact I was replying to the orignal post. Is there any way to move my post to the orignal post?

                -muneeb A thing of beauty is the joy forever.

                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