Posted by Blackwater Dev on 04/13/05 02:42
I want to check a string for only numbers and letters but am banging my head with regex: $good = "joh_'"; // Let's check the good e-mail if (preg_match("/[a-z0-9]/", $good)) { echo "Good"; } else { echo "Bad"; } This returns Good, why? Thanks!
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming