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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
<a[a-zA-Z0-9 ="'.:;?]*(href=[\"\'](http:\/\/|\.\/|\/)?\w+(\.\w+)*(\/\w+(\.\w+)?)*(\/|\?\w*=\w*(&\w*=\w*)*)?[\"\'])*(>[a-zA-Z0-9 ="'<>.:;?]*</a>)
Description
i've merged two regular expression those i found on this site. thanks to the owners &quot;AleŇ° Potocnik and Andrew Lee &quot;. i used their expression to make mine. this expression finds the URL/Hyperlink with the HTML tags.
Matches
<a href="http://www.google.co.in/hi">Hindi</a>
Non-Matches
href="http://www.google.co.in/hi"
Author Rating: Not yet rated. himraj love
Source <a[a-zA-Z0-9 ="'.:;?]*(href=[\"\'](http:\/\/|\.\/|\/)?\w+(\.\w+)*(\/\w+(\.\w+)?)*(\/|\?\w*=\w*(&\w*=\w*)*)?[\"\'])*(>[a-zA-Z0
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: Missing
Name: Willem
Date: 5/2/2007 5:28:53 AM
Comment:
this expression does not match hyperlinks with extra properties besides href (like class, onclick and target).


Title: dog beds
Name: Ricky
Date: 3/21/2007 2:06:49 AM
Comment:
The above site gives a good description of about the availability of dog beds i have gone through the similar site which gives a very good information of availability of dog beds at different stores


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