RegexEditor.dev Logo

Regex Editor & Tester

Build, test, and debug regular expressions

a|bAlternation with |: a|bAlternationFormal RE✨ Emoji Combos

L(a|b) = {a, b}. Alternation is the union of two languages.

✓ Accepts
ab
✗ Rejects
εabcba
Loading editor…