Displaying page
of
pages;
Items to
Title |
Test
Details
Anchor Tag, href, title and innerHTML (PHP)
|
Expression |
#<a\s*(?:href=[\'"]([^\'"]+)[\'"])?\s*(?:title=[\'"]([^\'"]+)[\'"])?.*?>((?:(?!</a>).)*)</a>#i
|
Description |
Returns array of full A tag [0], href [1], title [2] and innerHTML [3]. href, title and innerHTML are optional in tag; will return empty if missing.
Test will only work using PHP preg_match_all or similar; I ask this site
to add that option.
Credit goes to user prometheuzz.
|
Matches |
<a id='a' class=''b' href='c' title='d'>innerHTML</a>; <a></a>
|
Non-Matches |
non a tags
|
Author |
Rating:
Jeff Flesher
|
Displaying page
of
pages;
Items to