$html=strip_tags($html); $html=ereg_replace("[^A-Za-zäÄÜüÖö]"," ",$html); $words = preg_split("/[\s,]+/", $html);
Does all non (AZ, az, aou with umlauts) replace with spaces? I lose words like zugänglich etc. With umlauts
Is there something wrong with regex?
edit:
I replaced ereg_replace with preg_replace, but somehow special characters like :, ® are not replaced by a space ...
user494461
source share