Hallo Rolf,
Es gibt einen String wie folgt
$html = "<html> html </html>";
und einen weiteren String
$x = "html";
$html soll nun mit $x so behandelt werden dass
<html> #html# </html>dabei herauskommt.
s/(^|[^<])$x($|[^>])/$1#$x#$2/g;
Gruesse,
CK
--
http://cforum.teamone.de/
http://wishlist.tetekum.de/
If God had meant for us to be in the Army, we would have been born with green, baggy skin.
http://cforum.teamone.de/
http://wishlist.tetekum.de/
If God had meant for us to be in the Army, we would have been born with green, baggy skin.