title: Scala regex match failing with scala.MatchError for \w and \d (word or digit) match
body: <p>I was trying some basic regex pattern matching. Although my syntax seems to be correct, it's failing when I use <code>\w</code> or <code>\d</code> for word and digit matching.</p>
  
  <pre><code>import scala.util.matching.Regex
  
  object ex {
    def main(args:Array[String]):Unit = {
      val pattern =  new Regex("(\\w)\\s(\\d)");
      val pattern(words,num) = "asas1 11"
      print(words+" "+num)
    }
  }
  </code></pre>
  
  <p>This is error I get:</p>
  
  <pre><code>Exception in thread "main" scala.MatchError: asas1 11 (of class java.lang.String)
      at com.cccu.semantic.ex$.main(ex.scala:8)
      at com.cccu.semantic.ex.main(ex.scala)
  </code></pre>
  
  <p>Note: I am using the Scala IDE build of the Eclipse SDK, Build ID 4.4.1 with Scala 2.11.8 on a Windows machine.</p>