RegexEditor.dev Logo

Regex Editor & Tester

Build, test, and debug regular expressions

aa|bbaa|bb — length-2 palindromesClassic ProblemsFormal RE✨ Emoji Combos

The only length-2 palindromes over {a,b}. Arbitrary-length palindromes are NOT regular — provable via the Pumping Lemma.

✓ Accepts
aabb
✗ Rejects
abbaabεaab
Loading editor…