当前位置: 代码迷 >> PHP >> 正则表达式,该怎么处理
  详细解决方案

正则表达式,该怎么处理

热度:200   发布时间:2012-04-05 12:42:40.0
正则表达式
this is test  

把is 替换成 a 但 this不能变

------解决方案--------------------
echo preg_replace('/\bis\b/', 'a', 'this is test');//this a test