in reply to regex problem
$data =~ s/[\[\]]//g; [download]
Or, to be safe, if the brackets are always around sbs, try:
$data =~ s/\[(\\sbs)\](.*)/$1$2/; [download]