in reply to Re^2: Regex with variables
in thread Regex with variables

You might enjoy this meditation, Assume that Perl has what you need