* Wizard <wizard at neonedge.com> [2003-02-11 10:32]:
> I guess I'll have to fail on at least some then, as that really isn't
> an option. This is for filter sets, not really validity. I'm looking
> at sets that look like this:
>
> *@aol.*
> *@*.parliment.uk
> fred@*.sourceforge.*
> etc.
Hmm, nice:
# Assume @addrs is the above list:
for (my $i = 0; $i < @addrs; $i++) {
$addrs[$i] =~ s/\*/.*/g;
$addrs[$i] =~ s/\./\\./g;
$addrs[$i] = qr($addrs[$i]);
}
You've got a list of regexes. Cool.
(darren)
--
Sport is a great leveller, but then so is death.
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm