Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Heuristic for parsing Host name and domain

by Corion (Patriarch)
on Aug 29, 2011 at 15:43 UTC ( [id://923053]=note: print w/replies, xml ) Need Help??


in reply to Re: Heuristic for parsing Host name and domain
in thread Heuristic for parsing Host name and domain

Your approach seems to fail for .de in one case and .name, .mobi, .museum in the other case. The only approach is to use a list of known TLDs.

Replies are listed 'Best First'.
Re^3: Heuristic for parsing Host name and domain
by flexvault (Monsignor) on Aug 29, 2011 at 18:16 UTC

    I wasn't trying to be exhaustive. I was showing an approach for what he needed.

    In the context of spam checking, it is the 3 and 5 letter TLDs that are the greatest problems.

    But you are correct!

    "Well done is better than well said." - Benjamin Franklin

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://923053]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-25 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found