$var =~ s/\[IMG(.*?)\]//g;