That's a lot of B's. (I was making a motorboat sound just thinking about that regex. {grin})my $ignore = '(?:\b'. join('\b|\b', map quotemeta, @ignore). '\b)';
Wouldn't this be simpler?
my $ignore = '\b(?:' . join("|", map "\Q$_", @ignore) . ')\b';
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to •Re: Re: Nested foreach
by merlyn
in thread Nested foreach
by esoteric neonate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |