title: Regular expression for a huge data block
body: <p>I've had a task to process big rtf-files, >500Мb. I needed to find and extract parts from these big files.</p>
  
  <p>It was a working prototype, written on Java, for demonstration purposes.</p>
  
  <p>I created a regular expression, which worked for smaller rtf files (~10Мb), and tried to apply this expression for huge files.</p>
  
  <p>And I get "Stack overflow" error upon execution of this regexp.</p>
  
  <p>As far as I understand regular expressions have recursive nature, and it is the reason of the exception I get. On the smaller files that regexp worked well and fast.</p>
  
  <p>Do I understand the reason correctly?</p>