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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details 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
   Displaying page 1 of 1 pages; Items 1 to 1

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