Need to check for the presence in the character string. The string must contain only Cyrillic characters, Latin characters, spaces and nothing else. I tried to create a regular schedule in js, but for some reason it works completely wrong!
if (preg_match("/[^A-zА-я]/","daksks sdsd ывыв1234234") == 0) { echo "Да"; }