我试图得到
//before preg_replace -> Hi (Jimmy),
$string = preg_replace('/[^\da-z]/i', '', $string);
//after current preg_replace -> HiJimmy
//what it should be -> Hi Jimmy
preg_replace 删除所有字母数字字符,除了空格。这可能吗?
我试图得到
//before preg_replace -> Hi (Jimmy),
$string = preg_replace('/[^\da-z]/i', '', $string);
//after current preg_replace -> HiJimmy
//what it should be -> Hi Jimmy
preg_replace 删除所有字母数字字符,除了空格。这可能吗?