title: How to ignore newline in regexp?
body: <p>How to ignore newline in regexp in Javascript ?</p>
  
  <p>for example:</p>
  
  <pre><code> data = "\
      &lt;test&gt;11\n
      1&lt;/test&gt;\n\
      #EXTM3U\n\
   "
   var reg = new RegExp( "\&lt;" + "test" + "\&gt;(.*?)\&lt;\/" + "test" + "\&gt;" )
   var match = data.match(reg)
   console.log(match[1])
  </code></pre>
  
  <p>result: undefined </p>