Here i want to validate a name where:
A name only consist of these characters [a-zA-Z-'\s] however a sequence of two or more of the hyphens or apostrophe can not exist also a name should start with a letter.
I tried
$name = preg_match("/^[a-zA-Z][a-zA-Z'\s-]{1,20}$/", $name);
however it allows double hyphens and apostrophes. If you can help thank you