use strict; use warnings; use Regexp::List; my @words = qw!bob fred frederic ann anne annie!; my $target = <new (modifiers => 'i')->list2re (@words); my @matches = $target =~ /($match)/g; print "@matches";