>>>>> "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:
|
|