RegexEditor.dev Logo

Regex Editor & Tester

Build, test, and debug regular expressions

(a|b)*aa(a|b)*(a|b)*aa(a|b)* — contains substring "aa"CombinedFormal RE✨ Emoji Combos

Full-string match + surrounding (a|b)* simulates substring search within formal RE. The inner "aa" must appear somewhere in the string.

✓ Accepts
aaaabbaabaabaaaa
✗ Rejects
εababbababa
Loading editor…