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";
In reply to Re: Regexp Question
by Anonymous Monk
in thread Regexp Question
by armadilloman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |