🌐 English

Home › Guides

Regex basics and common patterns

A regular expression is a tiny language for finding shapes in text. A handful of symbols covers most jobs.

Basic symbols

Common patterns

Be careful

Things with complex rules like email addresses are hard to validate perfectly with a regex. Filter roughly, and confirm for real (for example by sending a mail). Nested repetition like (a+)+ can become extremely slow.