SyntaxFix
Write A Post
Hire A Developer
Questions
Wouldn't it be easier to negative-match alphanumerics instead?
return string.match(/^[^a-zA-Z0-9]+$/) ? true : false;