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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Regular Expression

Regular Expression

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

    Hi, Can any help me create a reqular expression that checks password Criterias are 1. minimum of 6 characters long 2. contain upper and lower case characters (no special character) 3. at least one numeric value.

    V G C 3 Replies Last reply
    0
    • T Tiger456

      Hi, Can any help me create a reqular expression that checks password Criterias are 1. minimum of 6 characters long 2. contain upper and lower case characters (no special character) 3. at least one numeric value.

      V Offline
      V Offline
      Vipin Venugopal
      wrote on last edited by
      #2

      Hope this expression works .{6,}\w*\d{1,} Vipin

      T 1 Reply Last reply
      0
      • V Vipin Venugopal

        Hope this expression works .{6,}\w*\d{1,} Vipin

        T Offline
        T Offline
        Tiger456
        wrote on last edited by
        #3

        Hi vipin Its not working

        1 Reply Last reply
        0
        • T Tiger456

          Hi, Can any help me create a reqular expression that checks password Criterias are 1. minimum of 6 characters long 2. contain upper and lower case characters (no special character) 3. at least one numeric value.

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

          It's hard to put that together in one expression. If you use separate expressions, it's easy: 1: ^[A-Za-z\d]{6,}$ 2a: [A-Z] 2b: [a-z] 3: \d

          --- b { font-weight: normal; }

          1 Reply Last reply
          0
          • T Tiger456

            Hi, Can any help me create a reqular expression that checks password Criterias are 1. minimum of 6 characters long 2. contain upper and lower case characters (no special character) 3. at least one numeric value.

            C Offline
            C Offline
            Coding C
            wrote on last edited by
            #5

            Hi, is think this is the best soltuion possible. check it out. Regex rx=new Regex(@"^\w{5,}\d{1}?$"); Regards. Nitin Murkute. Nitin...

            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