Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Global or Regex to get name from URL?

Quote Reply
Global or Regex to get name from URL?
Hey Folks,

I've been searching for hours to find a way to do this....

How could I extract the site name from a URL???

For Example...Let's say I have a field containing a URL:

http://www.examplesite.com

I need a global to return:

examplesite

I've searched throught regex tutorials, but can't seem to find a way to cut the name out after after and before the "."

If anyone can help find a solution, or point me in the right direction I would really appriciate it!!!

Crazy Jonze Crazy
Subject Author Views Date
Thread Global or Regex to get name from URL? Jonze 4146 Feb 22, 2007, 3:37 PM
Thread Re: [Jonze] Global or Regex to get name from URL?
SaraBem 4035 Mar 1, 2007, 12:38 AM
Thread Re: [SaraBem] Global or Regex to get name from URL?
Jonze 4036 Mar 1, 2007, 11:43 AM
Thread Re: [Jonze] Global or Regex to get name from URL?
SaraBem 4024 Mar 1, 2007, 1:54 PM
Thread Re: [SaraBem] Global or Regex to get name from URL?
Jonze 4049 Mar 1, 2007, 2:48 PM
Thread Re: [Jonze] Global or Regex to get name from URL?
SaraBem 4031 Mar 1, 2007, 3:06 PM
Thread Re: [SaraBem] Global or Regex to get name from URL?
Jonze 4070 Mar 1, 2007, 3:30 PM
Thread Re: [Jonze] Global or Regex to get name from URL?
SaraBem 4026 Mar 1, 2007, 4:41 PM
Thread Re: [SaraBem] Global or Regex to get name from URL?
Jonze 4063 Mar 1, 2007, 5:25 PM
Thread Re: [Jonze] Global or Regex to get name from URL?
Andy 3974 Mar 9, 2007, 1:51 AM
Post Re: [Andy] Global or Regex to get name from URL?
Jonze 3936 Mar 28, 2007, 7:53 AM