Regular expressions are strings which can be used to find patterns (or lack thereof) in data. Any string can be converted to a regular expression using the .r
method.
This is a companion discussion topic for the original entry at http://docs.scala-lang.org/tutorials/tour/regular-expression-patterns.html.html