also change this: <a href="http://sdfsd.com/dfdd.html">sdsfsd</a> to this: http://sdfsd.com/dfdd.html also... for all the links found in a variable.
i have to remove this too: <a href=""> </a> because if i remove only http:// and www. then the hyperlink will be invalid. also what i need is something like: preg_match_all <a.*href="(.*)".*</a> just to keep: (.*) i just can't figure it out for the right regex... don't know why the one above doesn't work for me. :S hmm..... now i saw that i use preg_match_all lol... maybe i need preg_replace will try this. :>