PCRE question
| From: | Batch | Date: | Thu, 13 Jun 2002 16:20:16 +0000 |
| Subject: | PCRE question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-101985@lists.php.net to get a copy of this message | ||
I am trying to write a small piece of code that looks for repeating digits
or symbols...such as $$, %%, 99
Here is what I have come up with...although I dont think this is the
complete Regex.
$pass = "test99ing";
if (preg_match("/[^a-zA-Z]{2,}/",$pass, $match)){
echo("You cant have repeating symbols: $match")
However this doesnt seem to work at all.
Any help is greatly appreciated.
Scott