title: Regular Expression in Google Apps Script 2
body: <p>I am having a text file and need to extract words and figures out of it. The Script searches for a keyword and takes the word/figure after the keyword.</p>
  
  <p>This is where i get the result from filter:</p>
  
  <pre><code>var ergebnis=text.match(filter[i]);
  </code></pre>
  
  <p>These are the regular expressions:</p>
  
  <pre><code>var filter=[/ISIN (\w*)/g, /STK (\w*)/g , /(Kurs) EUR/g];
  </code></pre>
  
  <p>The regular expression works with the single words <code>ISIN</code> and <code>STK</code>, but fails with the expression <code>Kurs EUR</code>.</p>
  
  <p>I have tried various expressions without getting a match. What am I doing wrong?</p>