Regex Tutorial

view latest version


THIS IS A WORK IN PROGRESS















Table of Contents

  1. What is regex?
  2. Special Characters
  3. Character Classes
  4. Anchors and Boundaries
  5. Alternation
  6. Optional
  7. Groups and Captures
  8. Eager vs Lazy
  9. Why use regex?

What is Regex?

Special Characters

and non-printable characters

[], (), {}, *, +, ?, |, ^, $, ., \

Character Classes

and shorthand character classes and dot character

Anchors and Boundaries