in reply to Regex help

You want the first square brackets. So tell Perl:
/^[^[]*(\[[^]]+])/