title: Scala regular expression with $ (end of string)
body: <p>I'm somewhat in difficulty. (I'm pro in regexps but not much used them in scala/java).
  I have numeric string of 11 chars in length, need just last 10, so:</p>
  
  <pre><code>val Pattern = """(\d{10})$""".r
  "79283767219" match {
    case Pattern(m) =&gt; m
  }
  </code></pre>
  
  <p>It gives <code>MatchError</code>, but why?! What have I misunderstood?</p>