[Nitro] [NP.ORG] Nitro/Og Fora daily digest

transfire at gmail.com transfire at gmail.com
Tue May 15 14:40:15 EDT 2007


On May 14, 8:05 pm, george.moschovi... at gmail.com wrote:
> >From gmosx.myopenid.com
>
> Date: Mon May 14 06:20:25 UTC 2007
> Subject: Extract main part of domain
> Message-ID:http://www.nitroproject.org/fora/posts/view/a0hNacaEmr3kiUeJeZaaqU
>
> <Dear devs,
>
> I am wondering if anyone has an elegant solution to this problem: I want to extact the 'main' part of a domain, for example:
>
> www.nitro.com->< nitro.com
> localhost:8000 ->< localhost:8000
> gmosx.nitro.com -> nitro.com
>
> If someone can provide an elegant snippet of code, I would like to see this.


http://www.ruby-doc.org/stdlib/libdoc/uri/rdoc/index.html


T.



More information about the Nitro-general mailing list