PHP : Remove words less than 3 characters in unicode text

前端 未结 2 627

I use these regex to remove words less than 3 characters :

$str = preg_replace(\"!\\\\b\\\\w{1,3}\\\\b!\", \"\", $str);  

and

$         


        
2条回答
提交回复
热议问题