title: Regular expression search all substrings between two keywords with linebreaks
body: <p>Lets say I have a python string <code>'\\[this\\] is \\[some\n text\\].'</code></p>
  <pre><code>s = &quot;\\[this\\] is \\[some\n text\\].&quot;
  </code></pre>
  <p>I would like a regular expression that would return me substrings &quot;this&quot; and &quot;some\n text&quot;.
  I've tried</p>
  <pre><code>re.search(r'\\[(.*)\\]',s)
  </code></pre>
  <p>but it does not work (return None)</p>