Regular expressions

From: Date: Wed, 12 Dec 2007 06:33:57 +0000
Subject: Regular expressions
Groups: php.general 
Request: Send a blank email to php-general+get-265742@lists.php.net to get a copy of this message
I am trying to do a password match with php.. It needs to be at least 6 characters, contains 2 alphabets and at least 1 number or a special character... if (!preg_match("/^.*(?=.{6,})((?=.*\d)|(?=.*[,\=@\"\/'+\*\?\.\[\]\^$\(\){}\|\\&:;'<>~`#%_-]))([a-zA-Z]{2,}).*$/", $pw1)) {error message} is failing to pass "e1w2qw" as a good password although it follows the instructions... I cannot figure out why.. Please help! Thank you,

« previous php.general (#265742) next »