use strict; use warnings; my $pattern = qr{(? Encoded: ($estring)\n"; }