ereg_replace

From: Date: Tue, 30 Sep 2003 15:14:33 +0000
Subject: ereg_replace
Groups: php.db 
Request: Send a blank email to php-db+get-30769@lists.php.net to get a copy of this message
strip_tags() is used to remove HTML tags, eg for showing text on the browser and then sending it by plain text email or storing in the db. As a matter of interest, how is this done using ereg_replace. I thought this would work ^<.*>$, that is being with < and any number of single characters ending with >. Didn't seem to work - why? John

« previous php.db (#30769) next »