title: Splitting a string with regex, ignoring delimiters that occur within braces
body: <p>Suppose I have a string</p>
  
  <blockquote>
    <p><code>Max and Bob and Merry and {Jack and Co.} and Lisa</code>.</p>
  </blockquote>
  
  <p>I need to split it with <code>and</code> being the delimiter, <em>but only if it does not occur within curly braces</em>.</p>
  
  <p>So from the above string I should get 5 strings:<br>
  <code>Max</code>, <code>Bob</code>, <code>Merry</code>, <code>Jack and Co.</code>, <code>Lisa</code>.</p>
  
  <p>I tried something like this pattern:</p>
  
  <pre><code>[^\\\{.+]\\band\\b[^.+\\\}]
  </code></pre>
  
  <p>But it doesn't work - <code>Jack</code> and <code>Co.</code> are still split as well (I use C++ so I have to escape special characters twice).</p>