in reply to
Regex with variables
Just swap $test and $targets in the 'if' statement.
Comment on
Re: Regex with variables
In Section
Seekers of Perl Wisdom