Hi there!
I don't understand regular expressions ... but I have to do the following:
I have the content of a whole website in one variable called $text.
And I need to format and clean, replace some pieces of the text / code inside...
Example:
PHP Code:
$text="Hi! This is my text. Just an example. <a href='link.html'>Link</a><font size=2>Even more text</font>"
Now I would like to clean up the text, I only need the text AND the links ... and I need to delete the rest (<font>, etc.)
How can this be done??? 
|