in reply to Regexp Question

$test="\$\{This\$\{One\}and\$\{also\}this\}"; $test=~/\$\{(([^\{\$\}]*(?:\$\{[^\$\{\}]+\}[^\$\{\}]*)*))\}/gxs; print "test:$1";
Try this.I haven't made any changes in your regexp i just added two brackets to get the required values($1)