O'Reilly logo

Pragmatic Scala by Venkat Subramaniam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9Pattern Matching and Regular Expressions

Pattern matching is the second most widely used feature of Scala, after function values and closures. Scala’s superb support for pattern matching means you’ll use it extensively when you receive messages from actors in concurrent programming. In this chapter, you’ll learn about Scala’s mechanism for pattern matching, the case classes, and the extractors, as well as how to create and use regular expressions.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required