Hi,
This is my regex, I want them to be able to enter hyphen, how could I do that?
'regex' => '/^[A-Za-z\']{2,40}$/',
how to add hyphen
Moderator: General Moderators
Code: Select all
$regex = '/^[A-Za-z\'\-]{2,40}$/';