Trying to create a pattern that matches an opening bracket and gets everything between it and the next space it encounters. I thought \\[.*\\s would achieve th
\\[.*\\s
You could use a reluctant qualifier:
[.*?\s
Or instead match on all non-space characters:
[\S*\s