in reply to
Regular Expressions and Variables
s/\[([^\]+)]/$buz/gi;
update:
More flexibility is with
japhy
's solution.
Comment on
Re: Regular Expressions and Variables
Download
Code
In Section
Seekers of Perl Wisdom