I use these regex to remove words less than 3 characters :
$str = preg_replace(\"!\\\\b\\\\w{1,3}\\\\b!\", \"\", $str);
and
$
Use the u modifier for UTF-8 support:
/\b\w{1,2}\b/u