Re: Regular expression

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Patrick,

http://regexlib.com/ is a really good site to find examples of regular expressions. http://regexlib.com/Search.aspx?k=password should get you a bunch of results.

Also anything else besides letters and numbers is considered bad password form.

D


On Feb 14, 2006, at 3:53 PM, Patrick wrote:

Hi,

I am trying to validate a password, but havent figured out the pattern for
it yet.
The password must contain atleast 6 characters
a-zA-Z0-9_
must start with a
a-zA-Z
and must have atleast one of the following characters
!#%&$£

correct passwords would be:
a#aAb08
Plkpod!
t09_#8T
U_p#q#Pq

i was trying something like this, but it dosent seem to work:
^[a-zA-Z]{1}[!#%&$]+[a-zA-Z0-9_]+

Patrick

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux