Help for this page
my %replacements = (...); my $regex = join '|', ... s/($regex)/$replacements{$1}/g; print $_; }