in reply to Stripping domain names from URLs
What I would do is take a long look at how you, personally, parse a domain name. That will give you the definition and exceptions. And, no, it's not s/^[^.]\.//, in case you're wondering.
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
I shouldn't have to say this, but any code, unless otherwise stated, is untested
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Stripping domain names from URLs
by tachyon (Chancellor) on Sep 08, 2004 at 13:55 UTC | |
by dragonchild (Archbishop) on Sep 08, 2004 at 14:26 UTC |