(thanks turnstep, i added 'g'. duh!)s#\([^)]+\)#$_=$&;y/;/,/;$_#ge
(also, as le says below, it isn't a good idea to use $& in production code)
In reply to Re: Search and Replace
by mdillon
in thread Search and Replace
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |