Regular Expressions

Regular expressions (or regex) are a powerful way to search for text that matches a given pattern. At their best they are simple, elegant, and incredibly useful. This series of exercises will help you learn regex beyond the basics and build more sophisticated regular expressions to match complex and subtle patterns.

For an introduction to simple regex or a refresher (a cheat sheet never hurts) read through the Back to Basics: Regular Expressions article first.

Exercises