正则表达式
this is test
把is 替换成 a 但 this不能变
[解决办法]
echo preg_replace('/\bis\b/', 'a', 'this is test');//this a test
发布时间: 2012-04-05 12:42:40 作者: rapoo
正则表达式
this is test
把is 替换成 a 但 this不能变
[解决办法]
echo preg_replace('/\bis\b/', 'a', 'this is test');//this a test