Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract subdomain from a URL?

Status
Not open for further replies.

Sidro

MIS
Sep 28, 2002
197
0
0
US
hi folks,
I have a URL that looks like this.

"MikesPlace.Mysite.com"

The problem Im having is extracting "MikesPlace" from the URL. Has anyone done this before? Can you provide an example? Thanks in advance.
 
Just use the Split command and take the first item i.e.
Code:
myString.Split(".")(0)



____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top