Sorry, one more...
I forgot to have it strip out whitespaces...
Here you go...
$domain =~ s/^www\.//i; # Kill www. - AFTER THIS LINE add this
one:
$domain =~ s/ //i; # Kill the blank spaces (whitespace)
HTH,
Richard
----- Original Message -----
From: "Domain Wizardry" <[EMAIL PROTECTED]>
To: "discuss" <[EMAIL PROTECTED]>
Sent: Saturday, April 05, 2003 9:24 PM
Subject: parsing
> We are loosing (I think) alot of 'newbies' to our lack of intelligent
> parsing on incoming domain lookup requests..
>
> That is, if they include www.sdfdsfdss.com, or "hcekc to see if my
> name.com", etc. are in there, and we just kick back a 'dumb' error.
>
> anyone have some simple parsing rulesets in perl for these conditions
(i.e.
> I just want to strip out the spaces, or the www., etc. to make the lookup
> request come back as good)..
>
> yes, I'm lazy.. :)
>
> JAsno
>
>
>