diff options
author | a.vandijk <anton.van.dijk@live.nl> | 2014-08-08 15:23:46 +0200 |
---|---|---|
committer | a.vandijk <anton.van.dijk@live.nl> | 2014-08-15 15:56:55 +0200 |
commit | 07b6229ee608ae37283a827112b5eab4c58a5333 (patch) | |
tree | e5f08bfe86ee035e66bbb7f716d0c91ab4e00fd4 /scala.html.markdown | |
parent | 3cb8d2bcc56332a814d0ae69492782ee4ddbd473 (diff) |
[CHANGE] Comment match on serial key now mentions verbatim (multiline)
Diffstat (limited to 'scala.html.markdown')
-rw-r--r-- | scala.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scala.html.markdown b/scala.html.markdown index 4dc87a94..619c8aae 100644 --- a/scala.html.markdown +++ b/scala.html.markdown @@ -322,7 +322,7 @@ kate match { case Person("Kate", _) => "Girl"; case Person("George", _) => "Boy" // Regular expressions val email = "(.*)@(.*)".r // Invoking r on String makes it a Regex -val serialKey = """(\d{5})-(\d{5})-(\d{5})-(\d{5})""".r // Using multiline string syntax +val serialKey = """(\d{5})-(\d{5})-(\d{5})-(\d{5})""".r // Using verbatim (multiline) syntax val matcher = (value: String) => { println(value match { |