Try:
$a = "abc"; $b = "def"; $c = "abc leppard"; $c =~ s/$a/$b/; [download]
In reply to Re: Variables in Regular Expressions? by busunsl in thread Variables in Regular Expressions? by pchou