php tutorial regular match unicode encoding regular method. Because of the particularity of unicode encoding, general Chinese or English regular expressions cannot correctly obtain the content we want. Let’s take a look at a professional unicode regular expression Expression.
Look at the unicode encoding picture.
$words = "0123456789abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrsruvwxyz!@#$%^&*()_+-=[],./{}|<>?'"Hello us";
$otherstr=preg_replace("//[x{0080}-x{00ff}]+/iu"," ",$words);
echo 'otherstr:',$otherstr;