Title |
Test
Find
Separating an HTML Hyperlink using nested named groups
|
Expression |
<a.*?href=[""'](?<uri>(?<path>.*?)file:(?<file>.*?))[""'].*?>(?<description>.*?)</a> |
Description |
Uses nested named groups to break down hyperlink into several different components including filename, path, the complete uri, and the link description between the tags |
Matches |
<p><a href="/folderindex.php?title=File:picture.jpg" class="image"><img alt=" picture.jpg" src="/folder/images/ picture.jpg " width="100" height="50" /></a></p> |
Non-Matches |
<p><a href="http://site.com/folder.html” class="html"><img alt="picture.jpg" src="/folder/images/ picture.jpg " width="100" height="50" /></a></p> |
Author |
Rating:
Not yet rated.
Matthew Reinsmith
|
Source |
mreinsmith |
Your Rating |
|