正则表达式this is test把is 替换成 a 但this不能变[解决办法]echo preg_replace(/\bis\b/, a, this
正则表达式
this is test
把is 替换成 a 但 this不能变
[解决办法]
echo preg_replace('/\bis\b/', 'a', 'this is test');//this a test
正则表达式
this is test
把is 替换成 a 但 this不能变
[解决办法]
echo preg_replace('/\bis\b/', 'a', 'this is test');//this a test