使用正则表达式替换的时候出现 preg_replace(): No ending delimiter '|' found

问题原因: 正则表达式中有字符 \

解决方法: 把 \ 改成 \\ (3个)