Lets say I have a python string '\\[this\\] is \\[some\n text\\].'
s = "\\[this\\] is \\[some\n text\\]."
I would like a regular expression that would return me substrings "this" and "some\n text". I've tried
re.search(r'\\[(.*)\\]',s)
but it does not work (return None)