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.


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

Reply via email to