$line =~ s/$regexp/$substitute/ee; #### qr/throw "([^"]+)"/; #### my $substitute = q{qq};