$string =~ s/$reg/qq{qq{$reg2}}/eeg; [download]
In reply to Re^2: Help with Regexp substitution using variables by Roy Johnson in thread Help with Regexp substitution using variables by kwokna