|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re^2: Regexp for Match Bracketsby turo (Friar) |
| on May 05, 2006 at 13:19 UTC ( #547639=note: print w/ replies, xml ) | Need Help?? |
|
the problem of your solution is that it takes all the text (parenthesis included) between the first open parenthesis and the last closed parenthesis, even if they are not balanced! :-P cheers
perl -Te 'print map { chr((ord)-((10,20,2,7)[$i++])) } split //,"turo"'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||