Re: parsing [one more]

From: Richard Jones (powerhouse@servicenterprises.com)
Date: Sat Apr 05 2003 - 23:21:31 EST


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" <srs@domainwizardry.com>
To: "discuss" <discuss-list@opensrs.org>
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
>
>
>



This archive was generated by hypermail 2.1.3 : Tue Oct 19 2004 - 23:37:41 EDT