PHP:警告 preg_replace
自过去两天以来,我一直很难调试这个错误...在谷歌上搜索了每一个可能的解决方案但失败了...如果有人可以帮助我解决这个问题,那将非常有帮助:
Warning: preg_replace() [function.preg-replace]: Unknown modifier '$' in C:\xampp\htdocs\wi_class_files\autoMakeLinks.php on line 7
代码是:
class autoActiveLink { function makeActiveLink($originalString){ $newString = preg_replace("[[:alpha:]]+://[^[:space:]]+[[:alnum:]/]i/","\\0", $originalString); return $newString; } }
I have been having a really hard time debugging this error since the past 2 days...googled for every possible solution bu failed...would be really helpful if anyone could help me out with it:
Warning: preg_replace() [function.preg-replace]: Unknown modifier 'The code is:
class autoActiveLink { function makeActiveLink($originalString){ $newString = preg_replace("[[:alpha:]]+://[^[:space:]]+[[:alnum:]/]i/","\\0", $originalString); return $newString; } }in C:\xampp\htdocs\wi_class_files\autoMakeLinks.php on line 7
The code is:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您忘记了分隔符(在掩码的开头和结尾)
You forgot your delimiters (at the beginning AND at the end of your mask)