title: Flex Regular Expression Conversion Help
body: <p>I'm having a problem converting a regular expression from Python into Flex. My string is something like this:</p>
  
  <pre><code>SELECT "col", othercol,\n "othercol3" FROM doesn'tmatter...
  </code></pre>
  
  <p>Python matches just fine:</p>
  
  <pre><code>&gt;&gt;&gt; re.search('select(.*?)from', 'SELECT "col", othercol,\n "othercol3" FROM doesn\'tmatter...', re.DOTALL|re.IGNORECASE).groups()[0]
  
  ' "col", othercol,\n "othercol3" '
  </code></pre>
  
  <p>But when I try it in Flex:</p>
  
  <pre><code>var pattern:RegExp = /select(.*?)from/ig;
  var match:Array = pattern.exec('SELECT "col", othercol,\n "othercol3" FROM doesn\'tmatter...');
  trace(match);
  </code></pre>
  
  <p><code>match</code> always ends up null. What am I doing wrong? I'm sure it's obvious to a seasoned Flex programmer...</p>