Re: [PHP] Regex not working with ":"

2009-04-22 Thread Merlin Morgenstern
Richard Quadling wrote: 2009/4/22 kyle.smith : Have you tried escaping the : with a \? Like: mb_ereg_replace('^(.*)this is the test\: replace(.*)$', '', $contents ,'UTF-8'); Also, have you tried removing the : and adjusting the input string to verify your belief that it's the :? HTH, Kyle

Re: [PHP] Regex not working with ":"

2009-04-22 Thread Richard Quadling
2009/4/22 kyle.smith : > Have you tried escaping the : with a \? > > Like: > mb_ereg_replace('^(.*)this is the test\: replace(.*)$', '', $contents > ,'UTF-8'); > > Also, have you tried removing the : and adjusting the input string to > verify your belief that it's the :? > > HTH, > Kyle > > -Or

RE: [PHP] Regex not working with ":"

2009-04-22 Thread kyle.smith
Have you tried escaping the : with a \? Like: mb_ereg_replace('^(.*)this is the test\: replace(.*)$', '', $contents ,'UTF-8'); Also, have you tried removing the : and adjusting the input string to verify your belief that it's the :? HTH, Kyle -Original Message- From: Merlin Morgenstern