SyntaxFix
Write A Post
Hire A Developer
Questions
You left off the / (pattern delimiter) and $ (match end string).
/
$
preg_match("/^[a-zA-Z0-9]+$/", $value)