I have the following:
serv match { case \"chat\" => Chat_Server ! Relay_Message(serv) case _ => null }
The problem is that some
In case you want to dismiss any groupings when using regexes, make sure you use a sequence wildcard like _* (as per Scala's documentation).
_*
From the example above:
val Pattern = "(chat.*)".r serv match { case Pattern(_*) => "It's a chat" case _ => "Something else" }