Scala: How do I perform pattern matching on strings and regular expressions in a match expression?
Pattern matching in Scala can be performed on regular expression strings in a match expression.
Regular expressions can be defined as a Regex type and used for pattern matching in Scala.