in reply to Regex Variable Substitution

s/\[\$(.+?)\]/$1/eeg;