In order for regular expressions to correctly parse Russian letters, it is necessary to set the u modifier:
u
<?php preg_match('#...#su', $str, $match); ?>