Get/match text between brackets if prefix is some string in very big file : <p>I have a text file which is > 13GB and I need to parse only certen events from it.</p>

<p>For example structure of the file is like:</p>

<pre><code>events internal-soho-ds-missing-neighbour :
   {
      ue-context valid : 3533, 
      rnc-module-id valid : 12, 
      c-id-1 valid : 25472, 
      rnc-id-1 valid : 721
   }
events rrc-measurement-report :
   {
      ue-context valid : 3533, 
      rnc-module-id valid : 12, 
      c-id-1 valid : 25472, 
   }
</code></pre>

<p>After opening file in pythone I need only the part between brackets {} if prefix is "events internal-soho-ds-missing-neighbour :"</p>

<p>What is the best way to do it considering that the file is huge 13.8 GB, regex?</p>

<p>Thanks in advanced!</p>
