title: Scala using regex with or syntax in match case statement
body: <p>Cab anyone tell me why this does not work and how to fix ? </p>
  
  <pre><code>val aorb = "(a|b)".r
  
  aorb.findFirstIn("with a ")
  res103: Option[String] = Some(a)
  
  "with a " match { case aorb() =&gt; "have a or b" case _ =&gt; "None"}
  res102: String = None
  </code></pre>
  
  <p>I expected the match statement to return "have a or b"</p>
  
  <p>The actual problem is to try a series of matches on more complex regexes for an input and return a value on the first successful pattern.</p>