RegexTester.dev Logo

Regex Tester & Validator

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…