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.

Get Pragmatic Scala now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.