human
Regular expression to return all characters between two special characters
assistant
Here is some code to find all substrings in `mystring` beginning and ending with square brackets

re.findall('\\[(.*?)\\]', mystring)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.