Trying to find the links on a page.
my regex is:
/<a\s[^>]*href=(\"\'??)([^\"\'>]*?)[^>]*>(.*)<\/a>/
but seems to fail at
<a title="this" href="that">what?</a>
How would I change my regex to deal with href not placed first in the a tag?
Trying to find the links on a page.
my regex is:
/<a\s[^>]*href=(\"\'??)([^\"\'>]*?)[^>]*>(.*)<\/a>/
but seems to fail at
<a title="this" href="that">what?</a>
How would I change my regex to deal with href not placed first in the a tag?