my (@pre, @suf); for (@exclusions) { my ($p, $s) = split /ALPHA/, $_, 2; push @pre, $p if length $p; push @suf, $s if length $s; } my $pre_rx = join "", map "(?