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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find 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
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-2024, RegexAdvice.com | ASP.NET Tutorials