Regex und

(?=.*foo)(?=.*baz)
Outrageous Opossum