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

Regular Expression

Scheduled Pinned Locked Moved ASP.NET
businessregex
4 Posts 2 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.
  • M Offline
    M Offline
    mittalpa
    wrote on last edited by
    #1

    Hi I want to create a regular expression with following requirements: 1. Minimum Length - 4 2. Maxmimum Length - 60 3. Alphanumeric characters only. Please advice. Thanks P. Follow your goals, Means will follow you ---Gandhi---

    L 1 Reply Last reply
    0
    • M mittalpa

      Hi I want to create a regular expression with following requirements: 1. Minimum Length - 4 2. Maxmimum Length - 60 3. Alphanumeric characters only. Please advice. Thanks P. Follow your goals, Means will follow you ---Gandhi---

      L Offline
      L Offline
      lupin68
      wrote on last edited by
      #2

      Very easy, try this ^([a-zA-Z0-9@*#]{4,60})$ If you don't want the wild characters (@*#) you can remove them. Let me know Patrick

      M 1 Reply Last reply
      0
      • L lupin68

        Very easy, try this ^([a-zA-Z0-9@*#]{4,60})$ If you don't want the wild characters (@*#) you can remove them. Let me know Patrick

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

        thanks.. thats easy can u please refer a good link where I can learn abt regex? Follow your goals, Means will follow you ---Gandhi---

        L 1 Reply Last reply
        0
        • M mittalpa

          thanks.. thats easy can u please refer a good link where I can learn abt regex? Follow your goals, Means will follow you ---Gandhi---

          L Offline
          L Offline
          lupin68
          wrote on last edited by
          #4

          Good site for consulting RegExp. and building your own http://regexlib.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