jskaar
06-20-2006, 11:31 AM
But I'm new at this regexp-thing:S
Say I got the following:
$text = "Hi, how are <tag>you <b>my</b> friend?</tag>";
1. How do I get hold of the content of the tag? (That which is between <tag> and </tag>.)
2. And then I would like to replace "<tag>you <b>my</b> friend?</tag>" with "another text".
If someone who can this wonderful, but jet difficult, regexp stuff could help me?
Regards and thanks!
Say I got the following:
$text = "Hi, how are <tag>you <b>my</b> friend?</tag>";
1. How do I get hold of the content of the tag? (That which is between <tag> and </tag>.)
2. And then I would like to replace "<tag>you <b>my</b> friend?</tag>" with "another text".
If someone who can this wonderful, but jet difficult, regexp stuff could help me?
Regards and thanks!