How to strip russian characters from a string

$string = 'Этот текст на русском языке';
var_dump(preg_replace('/[\x{0410}-\x{042F}]+.*[\x{0410}-\x{042F}]+/iu', '', $string));

There are no comments yet, add one below.

Leave a Comment

Your email address will not be published. Required fields are marked *

*