$str = a b c;
$str = preg_replace("/a|b|c\","" $str);
above regex only matched a, b and c are excluded. At first I thought it was caused by the gobal thing, but after researched preg_match
itself has default global enabled. So what has actually gone wrong?