Answer the question
In order to leave comments, you need to log in
Regular expressions PHP UTF8, changing the expression from preg_replace to mb_ereg_replace stops working, what's wrong?
A simple code is presented, in theory it should cut off short words, but it only handles English letters.
$input_text = 'sdfsdf dsfds dfd и ltp';
echo(preg_replace('/\b\w{1,3}\b/', "", $input_text));
mb_ereg_replace('/\b\w{1,3}\b/', "", $input_text);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question