Wrapping Up

We looked at what regular expressions are and how we can use them to describe patterns of text. We looked at how to define basic patterns, including quantifiers, anchors, character classes, and more. And we looked at how we can use pattern modifiers to alter the behavior of our regexes—for example, to make them case-insensitive.

Now that you’ve learned about the patterns themselves, it’s time to learn how you can actually put them to use in processing text.

Get Text Processing with Ruby 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.