Answer the question
In order to leave comments, you need to log in
Help with regular expressions. Why is Cyrillic not accepted?
if (preg_match_all("/(!пр)\s+(^[а-я])/i", $mess, $tok)) {
Answer the question
In order to leave comments, you need to log in
Put a modifier u "/(!пр)\s+(^[а-я])/iu"
Video about modifiers
It is necessary to work with non-Latin letters using the standard mbstring extension
php.net/manual/ru/book.mbstring.php see the mb_ereg_... methods by itself when specifying the correct encoding.
Also try regular expression modifier u (when using utf8)
php.net/manual/en/reference.pcre.pattern.modifiers.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question