title: Scala Regex enable Multiline option
body: <p>I'm learning Scala, so this is probably pretty noob-irific.</p>
  
  <p>I want to have a multiline regular expression.</p>
  
  <p>In Ruby it would be:</p>
  
  <pre><code>MY_REGEX = /com:Node/m
  </code></pre>
  
  <p>My Scala looks like:</p>
  
  <pre><code>val ScriptNode =  new Regex("""&lt;com:Node&gt;""")
  </code></pre>
  
  <p>Here's my match function:</p>
  
  <pre><code>def matchNode( value : String ) : Boolean = value match 
  {
      case ScriptNode() =&gt; System.out.println( "found" + value ); true
      case _ =&gt; System.out.println("not found: " + value ) ; false
  }
  </code></pre>
  
  <p>And I'm calling it like so:</p>
  
  <pre><code>matchNode( "&lt;root&gt;\n&lt;com:Node&gt;\n&lt;/root&gt;" ) // doesn't work
  matchNode( "&lt;com:Node&gt;" ) // works
  </code></pre>
  
  <p>I've tried: </p>
  
  <pre><code>val ScriptNode =  new Regex("""&lt;com:Node&gt;?m""")
  </code></pre>
  
  <p>And I'd really like to avoid having to use java.util.regex.Pattern. Any tips greatly appreciated.</p>