Regex not working with ":"

From: Date: Wed, 22 Apr 2009 08:08:43 +0000
Subject: Regex not working with ":"
Groups: php.general 
Request: Send a blank email to php-general+get-291801@lists.php.net to get a copy of this message
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 this? Thank you for any help. Merlin

« previous php.general (#291801) next »