[thelist] html stripping
Mehmet Buyukozer
mbuyukozer at gmx.co.uk
Thu Apr 29 07:37:49 CDT 2004
Hi all
I am trying to strip all links from any given web sites.I want to do that
with regular expression but i don't know how i can do that. At first i
thought, i can do this with such a
preg_match_all("'<a.*href.*>.*</a>'",$html,$links); but it doesn't do
anything. I added strip_tags above this,
strip_tags($html,"<a>");
but it didn't help much too.
I am not used to use regular expression,so i think i have some mistakes in
pattern. Other than correcting my code, i really appreciate if you have one
that leads me to final point.
Thanks in advance
More information about the thelist
mailing list