> I have a small perl script which checks to see if input is a
> hostname or an IP address before writing it to a file.
>
> I was just checking to see if the first char was a number or a
> digit but there are some cases where a hostname can start with a
> number. (like 3.14159.com for e
On Wednesday, May 1, 2002, at 08:27 , P lerenard wrote:
> an ip address should have 3 dot and 2 (IPv4)
> so ii you check for the number of dot you have you will remove some false
> guess
>
> Pierre
[..]
>> ### }elsif ($nameserver =~ m/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/){
>> ### $t
an ip address should have 3 dot and 2 (IPv4)
so ii you check for the number of dot you have you will remove some false
guess
Pierre
>From: drieux <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: checking if domain or IP address
>Date
On Tuesday, April 30, 2002, at 05:51 , David Ulevitch wrote:
[..]
> I was just checking to see if the first char was a number or a digit
> but there are some cases where a hostname can start with a number.
> (like 3.14159.com for example)
>
> So the question is, if I have a variable like
Hello David,
Tuesday, April 30, 2002, 7:51:29 PM, you wrote:
DU> I was just checking to see if the first char was a number or a digit
DU> but there are some cases where a hostname can start with a number.
DU> (like 3.14159.com for example)
Sorry to reply to my own post, but a friend just
Hello beginners,
I have a small perl script which checks to see if input is a
hostname or an IP address before writing it to a file.
I was just checking to see if the first char was a number or a digit
but there are some cases where a hostname can start with a number.
(like 3.14159.com