RegexTester.dev Logo

Regex Tester & Validator

(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…