正则表达式:在大写字母前面加_

在大写字母前面加_
var_dump(preg_replace('/B(?<![A-Z])[A-Z]B/', '_${0}', $test));

原文地址:https://www.cnblogs.com/phonecom/p/7162071.html