Why is the matching behavior different for the same matcher?
val str = "project git commit: da2837ec0a" val Expr = "([a-f0-9]{10})$".r scala> str match { case Pattern(c) => c; case _ => "no match" } res30: String = no match scala> (Pattern findFirstIn str).get res31: String = da2837ec0a