persistence911 has asked for the wisdom of the Perl Monks concerning the following question:
please has anyone found a good heuristic that can be used to extract correctly domain name with subdomain Which also containg two Word Top level domain.
Take an example www.drane.fresel.co.uk www.drane2.ws.ru www.drane3.Intern.com
Where Example one is spitted into Drane.Fresel and TLD is co.uk
also Example 2 is drane2 and TLD is ws.ru
Example 3 is drane3.Intern and TLD is .com
I would really love some wisdom on how I can approach a problem of this nature. The URI module in perl CPAN does not help for this case .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Heuristic for parsing Host name and domain
by Anonymous Monk on Aug 29, 2011 at 15:20 UTC | |
by ikegami (Patriarch) on Aug 29, 2011 at 18:49 UTC | |
|
Re: Heuristic for parsing Host name and domain
by flexvault (Monsignor) on Aug 29, 2011 at 15:22 UTC | |
by Corion (Patriarch) on Aug 29, 2011 at 15:43 UTC | |
by flexvault (Monsignor) on Aug 29, 2011 at 18:16 UTC | |
|
Re: Heuristic for parsing Host name and domain
by DanielSpaniel (Scribe) on Aug 29, 2011 at 15:18 UTC | |
|
Re: Heuristic for parsing Host name and domain
by locked_user sundialsvc4 (Abbot) on Aug 31, 2011 at 01:12 UTC |