title: Regular Expression, match characters outside curly braces { }
body: <p>I have the following data:</p>
  
  <pre><code>int  time="1356280261"
  char value="3000"
  
  bankLine {
    char value="3000"
    char currency="EUR"
    int  time="1356280261"
  } #bankLine
  </code></pre>
  
  <p>I am parsing this data recursively and <strong>only want to match the 2 variables outside the block separately</strong>.</p>
  
  <p>I do have this regex to match the variable</p>
  
  <pre><code>/(?:char|int)\s*([A-z0-9]*)\s*=\s*"(.*)"/
  </code></pre>
  
  <p>Yet, the regex matches all occurrences inside the block, too.</p>
  
  <p><strong>How can I match only the first 2 variables individually and ignore all inside the bankLink-block?</strong></p>