title: Matching multiline Patterns
body: <p>I want to use greasemonkey to scrape wiki data from Last.fm (this is not possible with their REST api). I can grab the page fine with GM_xmlhttpRequest(), and it is returning properly.</p>
  
  <p>I do not want to use a DOM processor to process the whole page, since I only want a small chunk, so I'm using regular expressions.</p>
  
  <p>The wiki data is in the page like:</p>
  
  <pre><code>&lt;div id="wiki"&gt;
  description
  
  description
  ...
  &lt;/div&gt;
  </code></pre>
  
  <p>So I wrote:</p>
  
  <pre><code>/\&lt;div id="wiki"\&gt;(.+)\&lt;\/div\&gt;/m.exec(data)[1];
  </code></pre>
  
  <p>When I test this in error console (where the multiple lines are flattened into a single line, it works, but on the page it fails and says</p>
  
  <pre><code>Error: /\&lt;div id="wiki"\&gt;(.+)\&lt;\/div\&gt;/m.exec(data) is null
  Source File: file:///home/jeff/.mozilla/firefox/x4su9596.default/extensions/%7Be4a8a97b-f2ed-450b-b12d-ee082ba24781%7D/components/greasemonkey.js
  Line: 357
  </code></pre>
  
  <p>I am guessing that multiline mode does not make dor match new lines, which is what I expected. How do I make it match any character including line breaks?</p>