bradgrafelman wrote:What are some examples of strings that don't work but should?
$string1= "Dell'Ogliè";
var_dump(preg_match("#^\w+\'?\s?\w+$#", $string1));//true ;)
$string1= "De Oçois";
var_dump(preg_match("#^\w+\'?\s?\w+$#", $string1));//true ;)
$string1= "Weißmüller";
var_dump(preg_match("#^\w+\'?\s?\w+$#", $string1));//true ;)
$string1= "Weißmüller3";
var_dump(preg_match("#^\w+\'?\s?\w+$#", $string1));//true :( no number please !
I don't want digit characters
I want to allow
alphabetic characters
(not only the english alphabet but also other country
ie
é,ò,ù,ì for italian
ç for france
and so on )
the single quote ( ' ) ie Dall'ulma
the space ie De Andrè
Bye and thanks for the time 😉
the