Text & Regex
Regex Builder
Compose regular expressions from reusable building blocks and watch them match your sample text live. Everything runs in your browser — your patterns and text never leave the page.
Your regular expression
live
Building blocks
composeSample text
live matchHow it works
Each block contributes one piece of the pattern: character types, literal text, or a ready-made fragment such as an email address. Reorder blocks to change the sequence, attach a repeat count, and mark a block as a capture group to reuse its value. Presets are just pre-built block sequences, so you can start from one and adjust it. Invalid patterns are reported with a readable message instead of a browser exception. Use Copy share link to put your blocks, flags and sample text in the URL.