title: Python nongreedy second match
body: <p>I have a string <code>s = "a{asdfgh{asf}xvc}defg}des}"</code>
  I want to extract the part <code>"{asdfgh{asf}xvc}"</code> using regular expressions.
  I have used the regex match</p>
  
  <pre><code>p = re.compile('(\{[\w|\W]+?\})')
  </code></pre>
  
  <p>but it will extract <code>"{asdfgh{asf}"</code> .
  What is the correct regex for extracting the part <code>"{asdfgh{asf}xvc}"</code>.</p>
  
  <p>Also:
  What I am asking is for the second occurence match for '}' char.
  How can I match for nth occurence.</p>