RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

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
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials