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">&nbsp;<A HREF=" http:// |
Non-Matches |
<td bgcolor="#ffffff" class="small">&nbsp;<A HREF http://www.thepla |
Author |
Rating:
Not yet rated.
Matt Bruce
|
Source |
|
Your Rating |
|
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}