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

2009-04-22 Thread Merlin Morgenstern
ef that it's the :? HTH, Kyle -Original Message- From: Merlin Morgenstern [mailto:merli...@fastmail.fm] Sent: Wednesday, April 22, 2009 4:09 AM To: php-general@lists.php.net Subject: [PHP] Regex not working with ":" Hi there, I am trying to remove a text which does contain

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

2009-04-22 Thread Richard Quadling
t; verify your belief that it's the :? > > HTH, > Kyle > > -Original Message- > From: Merlin Morgenstern [mailto:merli...@fastmail.fm] > Sent: Wednesday, April 22, 2009 4:09 AM > To: php-general@lists.php.net > Subject: [PHP] Regex not working with ":" > &

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

2009-04-22 Thread kyle.smith
ssage- From: Merlin Morgenstern [mailto:merli...@fastmail.fm] Sent: Wednesday, April 22, 2009 4:09 AM To: php-general@lists.php.net Subject: [PHP] Regex not working with ":" Hi there, I am trying to remove a text which does contain a : inside. Somehow the regex does not match, no m

[PHP] Regex not working with ":"

2009-04-22 Thread Merlin Morgenstern
Hi there, I am trying to remove a text which does contain a : inside. Somehow the regex does not match, no matter what I do: $contents = mb_ereg_replace('^(.*)this is the test: replace(.*)$', '', $contents ,'UTF-8'); Looks like this is a result of the :. Does anybody have an idea how to do