PHP regular expression to detect that there are no Russian letters

Practice




PHP regular expression to determine that there are no Russian letters?
please advise

if ( preg_match( '~[а-яА-ЯЁё]~', $stringinput ) )
{
echo "Есть русские буквы";
}
else
{
echo "Нету ни одной русской буквы";
}

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Running server side scripts using PHP as an example (LAMP)"

Terms: Running server side scripts using PHP as an example (LAMP)