atleast one captal letter must be thr

Discussion in 'PHP' started by hulkrana, Jun 30, 2007.

  1. #1
    helo frds

    i want the validation that my password should contain atleast one capital and small letters else diosplay error.code is attached
     

    Attached Files:

    hulkrana, Jun 30, 2007 IP
  2. CodyRo

    CodyRo Peon

    Messages:
    365
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use regular expressions and the following regexp snippet:

    
    /A-Z/
    
    Code (markup):
    If it returns false, no capitals letters are in use :)
     
    CodyRo, Jun 30, 2007 IP