I'm sure this should work:
echo preg_replace("/(\w)(\!w)(\w)/","\\1\. \\3","this is.a test.to see. if
it. works");
It should output:
this is. a test. to see. if it. works
But it doesn't. The string is unaltered. What am I doing wrong?
echo preg_replace("/(\w)(\!w)(\w)/","\\1\. \\3","this is.a test.to see. if
it. works");
It should output:
this is. a test. to see. if it. works
But it doesn't. The string is unaltered. What am I doing wrong?
Comment