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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find URl Domain names
Expression
^http[s]?://([a-zA-Z0-9\-]+\.)*([a-zA-Z]{3,61}|[a-zA-Z]{1,}\.[a-zA-Z]{2})/.*$
Description
Used for matching a URL and can be used for extracting the domain name from a given URL ending with '/'. Concat $2 and $3 to get the domain name.
Matches
http://www.google.com/;http://google.com/;http://code.google.com/;http://google.co.uk/;http://tx.us/
Non-Matches
http://www.google.com;
Author Rating: Not yet rated. buzzooka
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

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