SyntaxFix
Write A Post
Hire A Developer
Questions
Typically you would always put the hyphen first in the [] match section. EG, to match any alphanumeric character including hyphens (written the long way), you would use [-a-zA-Z0-9]
[]
[-a-zA-Z0-9]