in reply to Regular Expressions and Variables

s/\[([^\]+)]/$buz/gi; update: More flexibility is with japhy's solution.