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]|[^"]|[^'])+)[\"\']?
Description
This will match just about everything after href= Its good if you just need a list of all the href= values
Matches
href="http://www.google.com/tsunami_relief.html" | href=/preferences?hl=en | href="ht
Non-Matches
src=blah blah
Author Rating: Not yet rated. Chris Richards
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: Senor
Name: Regex King 2000 XP+
Date: 2/16/2005 8:23:58 PM
Comment:
the small addition helps it out - definately the most comprehensive href ripper I've seen on this site. Thanks


Title: Small addition
Name: Holyfield
Date: 1/28/2005 8:00:00 PM
Comment:
expression below works on case: href = uri href\s*=\s*[\"\']?(?<HRef>(?:[^>]|[^\s]|[^"]|[^'])+)[\"\']?


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