I'm using this to extract everything possible from anchor tags :
preg_match_all("/(?i)<a([^\\a]+?)href=([^\\a]+?)[ |>]([^ ]*)\\<\\/a/i",$f,$match);
and it works fine.
but it wouldn't work for a string like:
<a id=uu href="/options/index.html" class=q>more</a>
bcos the class=q part is not fetched.
what should i modify to get that part too?? (any text after the href value)
ooops.. there's another tiny problem,
a string like:
<a id=uu href="/options/index.html" class=q>more more</a>
will give only more in the 3rd array - instead of more more??
TIA 🙂