I feel super fail asking this… but I’ve been trying to make sure my values are alphanumeric, and I can’t do it!
if(!preg_match(“^[0-9]+:[a-zA-Z]+$/”, $subuser)){
$form->setError($field, “* Username not alphanumeric”);
}
I did a search here and couldn’t find anything… probably because this is so rudimentary =__=
Also, does anyone know of a resource (aside from PHP.net) that has a list of operators for Preg_match, and what they mean?
Thanks!
The function ctype_alnum() is better in this case.
For the operators : official stuff.