Answer the question
In order to leave comments, you need to log in
How to search in Cyrillic with preg match?
Hello! This is how it works:
preg_match_all('#<div class="stats_inf">(.{1}.)</div>#is', $html1, $matches );
preg_match_all('#<div class="stats_title">Угловые</div><div class="stats_inf">(.{1}.)</div>#is', $html1, $matches );
preg_match_all('/^([а-яА-ЯЁёa-zA-Z0-9_]+)$/u', '#<div class="stats_title">Угловые</div><div class="stats_inf">(.{1}.)</div>#is', $html1, $matches );
Answer the question
In order to leave comments, you need to log in
Good evening.
Add the "u" modifier. And it's better, as Evgeny Romashkan
wrote , not to parse html using regular ones. In general, if you can do without RV - do it.
For example like this .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question