RegexEditor.dev Logo

Regex Editor & Tester

Build, test, and debug regular expressions

a(b|c)Distributive law: a(b|c) = ab|acCombinedFormal RE✨ Emoji Combos

Concatenation distributes over alternation. a(b|c) ≡ ab|ac. This identity is used constantly to simplify or convert formal REs.

✓ Accepts
abac
✗ Rejects
abcbcabc
Loading editor…