Great Circle Associates Majordomo-Workers
(January 2001)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: restrict post
From: Jason L Tibbitts III <tibbs @ math . uh . edu>
Date: 09 Jan 2001 13:42:27 -0600
To: Dave Wolfe <Dwolfe1 @ austin . rr . com>
Cc: "Hansel, Glen" <ghansel @ ti . com>, "'majordomo-workers @ greatcircle . com'" <majordomo-workers @ GreatCircle . COM>, mj2-dev @ csf . colorado . edu
In-reply-to: Dave Wolfe's message of "Tue, 9 Jan 2001 13:27:02 -0600"
References: <6DD22B82EC6AD31182E00008C791AC8E046F91@dleefp02.itg.ti.com><ufaitnor8we.fsf@epithumia.math.uh.edu><20010109132702.A15036@firewall.austin.rr.com>
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

>>>>> "DW" == Dave Wolfe <Dwolfe1@austin.rr.com> writes:

DW> Careful! That also matches "multi.com", etc. Perhaps you meant

DW> $host !~ /[@.]ti\.com$/

$host, as its name suggests, contains only the hostname, so it will never
have an '@' in it.  To anchor to the beginning or force a dot:

$host !~ /(^|\.)ti\.com$/

perhaps, or just

$host = ti.com

if you know addresses won't have any extra hostnames.

DW> Or am I mis-remembering what's allowed in Mj regexes?

There's no difference between what you get in Perl, although we're nice and
backwhack an '@' if you forget to.

 - J<



References:
Indexed By Date Previous: Re: restrict post
From: Jason L Tibbitts III <tibbs@math.uh.edu>
Next: RE: restrict post
From: "Hansel, Glen" <ghansel@ti.com>
Indexed By Thread Previous: Re: restrict post
From: Jason L Tibbitts III <tibbs@math.uh.edu>
Next: RE: restrict post
From: "Hansel, Glen" <ghansel@ti.com>

Google
 
Search Internet Search www.greatcircle.com