$aa= preg_replace_callback( ‘/(?<=href=)([^>]*)(?=>)/i‘, function ($matches) use(&$newHref) { return next($newHref); }, $aa );
正则批量替换href内容
原文:https://www.cnblogs.com/loweringye/p/10184167.html