RegexEditor.dev Logo

Regex Editor & Tester

Build, test, and debug regular expressions

(a|b)*b(a|b)*b — strings over {a,b} ending in bCombinedFormal RE✨ Emoji Combos

The complement of the previous example within {a,b}⁺. Together they partition all nonempty binary strings.

✓ Accepts
babbbaabbab
✗ Rejects
εabaaaaba
Loading editor…