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