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 Drop first subdomain from domain name
Expression
^\w+\.((?:\w+\.)+\w+)$
Description
Drops the first subdomain from a domain name with at least one subdomain. Fails if the domain does not contain a subdomain.
Matches
www.google.com | www.wave.google.com | as.vcu.acadia.memco.edu
Non-Matches
google.com | microsoft.com | memco.edu
Author Rating: Not yet rated. Josh Brown
   Displaying page 1 of 1 pages; Items 1 to 1

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