RE: [PHP] Regular expression
| From: | Weber Sites LTD | Date: | Wed, 15 Feb 2006 15:12:12 +0000 |
| Subject: | RE: [PHP] Regular expression | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-230447@lists.php.net to get a copy of this message | ||
Check out some Regular Expression code examples
To learn more :
http://www.weberdev.com/AdvancedSearch.php?searchtype=category&category=Rege
xps
Sincerely
berber
Visit the Weber Sites Today,
To see where PHP might take you tomorrow.
Uptime Monitor : http://uptime.weberdev.com
SEO Data Monitor http://seo.weberdev.com
-----Original Message-----
From: Patrick [mailto:pafo@pafo.net]
Sent: Tuesday, February 14, 2006 11:53 PM
To: php-general@lists.php.net
Subject: [PHP] Regular expression
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