I need a regex that will select everything from the beginning of the line until the first left square bracket. In the example below it would match Lorem, consectetur-adipisicing and labore et
Lorem [ipsum] dolor sit amet,
consectetur-adipisicing [elit] sed do
eiusmod tempor incididunt ut
labore et [dolore] magna aliqua.
Thank you for the help.