Title |
Test
Find
HTML Anchor tag
|
Expression |
<a\s+(?:(?:\w+\s*=\s*)(?:\w+|"[^"]*"|'[^']*'))*?\s*href\s*=\s*(?<url>\w+|"[^"]*"|'[^']*')(?:(?:\s+\w+\s*=\s*)(?:\w+|"[^"]*"|'[^']*'))*?>[^<]+</a> |
Description |
This will match an entire HTML tag and will capture the href portion into the named capture "url". It will match any anchor tag with any number of attributes. |
Matches |
The entire <a href=""></a> tag |
Non-Matches |
Links that include any html within the tag. |
Author |
Rating:
Derek Pinkerton
|
Source |
|
Your Rating |
|