elsif($var1=~/($var2[a-z]{1})/){ $var3 = $1; } [download]
In reply to Re: returning variable from within regex by tcf22 in thread returning variable from within regex by pdotcdot