情况:
字符串:Industrial & Scientific,Professional Medical Supplies,Durable Medical Equipment,Braces, Splints & Supports,Back, Neck & Shoulder Supports
最终表达式为:
$strNew = preg_replace('/(,)(\S)/','->${2}',$str);
这个表达式将会把第一个字符也替换:
$strNew = preg_replace('/(,)(\S)/','->${2}',$str);