title: Ignoring line breaks in Javascript regex
body: <p>Even if I use the m flag, javascript regex seems to isolate regex matching by lines.</p>
  
  <p>Example:</p>
  
  <pre><code>"if\nend".match(/if(.*?)end/m)
  =&gt; null
  </code></pre>
  
  <p>I want this to match. How do I get around this?</p>