note 29055 rejected from function.ereg-replace by maxim

From: Date: Fri, 31 Jan 2003 21:25:39 +0000
Subject: note 29055 rejected from function.ereg-replace by maxim
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-43227@lists.php.net to get a copy of this message
I try to use 'or' in the pattern field in ereg_replace and it didn't work. instead of using $msg = ereg_replace("(^.*>)|(<.*>)|(<.*$)", " ", $msg); ~replace all broken tags and tags with space. I have to split it into three statement. $msg = ereg_replace("(^.*>)", " ", $msg); $msg = ereg_replace("(<.*>)", " ", $msg); $msg = ereg_replace("(<.*$)", " ", $msg); songperk sem

« previous php.notes (#43227) next »