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

Re: [PHP] Regex not working with :

2009-04-22 Thread Richard Quadling
2009/4/22 kyle.smith kyle.sm...@inforonics.com: 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,

Re: [PHP] Regex not working with :

2009-04-22 Thread Merlin Morgenstern
Richard Quadling wrote: 2009/4/22 kyle.smith kyle.sm...@inforonics.com: 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

Re: [PHP] (Regex) not working, take a quick look at it plz?

2004-10-30 Thread Jason Wong
On Friday 29 October 2004 23:12, Ryan A wrote: I totally suck at RegEx (but am trying to learn), I got the following from the web, but its not working for me... can anyone spot what I am doing wrong or whats wrong please? And what *exactly* is wrong? What did you expect the code to do? What