Just can´t get this right...
I have parsed a webpage into a variable $body. I have manipulated $body, using the preg_replace function.
But now I have some problems with this regular expression. (in pseudocode)
---- 8< -------------
if pattern = "http:// [something]
replace with
http://www.[something]
---- 8< -------------
I have a couple of other ideas on howe to solve this problem using other functions but since I use the preg_replace funktion on some other patterns I would much prefer if I could use this to solve the above pattern to...
Can anyone help me?