Scala regex Named Capturing Groups
- by Brent
In scala.util.matching.Regex trait MatchData I see that there support for groupnames (Named Capturing Groups)
But since Java does not support groupnames until version 7 as I understand it, Scala version 2.8.0.RC4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6. gives me this exception:
scala> val pattern = """(?<login>\w+)…