Regex Builder

Build and test regular expressions visually

Browser ProcessingYour data never leaves your browser

Quick Add Patterns

Regex Cheat Sheet

Characters

. Any character

\d Digit (0-9)

\w Word character

\s Whitespace

\b Word boundary

Quantifiers

* 0 or more

+ 1 or more

? 0 or 1

{'{'}n{'}'} Exactly n

{'{'}n,m{'}'} n to m

Anchors

^ Start of string

$ End of string

Groups

(abc) Capture group

(?:abc) Non-capture

a|b Or