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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
\b([\d\w\.\/\+\-\?\:]*)((ht|f)tp(s|)\:\/\/|[\d\d\d|\d\d]\.[\d\d\d|\d\d]\.|www\.|\.tv|\.ac|\.com|\.edu|\.gov|\.int|\.mil|\.net|\.org|\.biz|\.info|\.name|\.pro|\.museum|\.co)([\d\w\.\/\%\+\-\=\&\?\:\\\"\'\,\|\~\;]*)\b
Description
Url matching
Matches
http://210.50.2.215/sd_new/WebBuilder.cgi?RegID=7449046&First=Ok&Upt=Ok&EditPage=3&S
Non-Matches
Hmmmm
Author Rating: The rating for this expression. Johky Cheng
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: Excellent regex!!!
Name: DG
Date: 10/4/2008 6:16:19 PM
Comment:
Not sure why this isn't more popular or higher rated. Seems to work with everything: example.com www.example.com http://example.com example.com/asdf.php?id=1 <a href=""> Also does what I was looking for and can filter the url out of a <a href> tag.


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