How to pattern-match for instance the first string element in an array using regular expressions?
Consider for example
Array("col",1) match {
case Array("""col | row""", n, _*) => n
case _ => 0
}
which delivers 0
, although the desired result would be 1.
Many Thanks.