I am given a string that has this pattern:
[blah blah blah] [more blah] some text
I want to break the string into three parts: blah blah blah , more blah and some text .
A rough way to do this is to use mystr.split('] ') and then remove the output [ from the first two elements. Is there a better and more efficient way (you need to do this for thousands of lines very quickly).
source share