ValidationExpression for RegularExpression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lukkynivas
    New Member
    • May 2007
    • 5

    ValidationExpression for RegularExpression

    Hi, this is CNU ,can any body let me know what is the validationexpre ssion for following criteria
    my text should contain At least one digit,6 to 12 chars and underscore
    i gave like
    (\w*[\d]+\w*)
    but it is not checking range 6-12 chars
    help me out
    than'q
    cnu
  • nateraaaa
    Recognized Expert Contributor
    • May 2007
    • 664

    #2
    Go to the following site. You should find what you need there.

    http://regexlib.com/Search.aspx

    Nathan

    Comment

    • lukkynivas
      New Member
      • May 2007
      • 5

      #3
      i did't get any thing like that there
      than'Q

      Comment

      • lukkynivas
        New Member
        • May 2007
        • 5

        #4
        Thank U v'Much
        i got exact what i want

        ((?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{6,12})$
        atleast one digit
        atleast one letter with underscore
        length 6 to 12 char

        Comment

        Working...