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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
href\s*=\s*(?:(?:\"(?<url>[^\"]*)\")|(?<url>[^\s*] ))>(?<title>[^<]+)</\w>
Description
finds the url and url description for all links in a given text.
Matches
<td bgcolor="#ffffff" class="small"> <A HREF=" http://
Non-Matches
<td bgcolor="#ffffff" class="small"> <A HREF http://www.thepla
Author Rating: Not yet rated. Matt Bruce
Source
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

Title: Fails to find URLs delimited with single-quotes instead of double quotes
Name: Randal L. Schwartz
Date: 3/28/2005 6:09:54 PM
Comment:
As I've said over and over, DO NOT PARSE HTML WITH REGEX. Unless you know what you're doing, but almost nobody does. {sigh}


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