According to the following answer on Stack OverFlow:
(?=.*foo)(?=.*baz)
This says to the regular expression that foo must appear anywhere and baz must appear anywhere, not necessarily in that order and possibly overlapping.
This regular expression should match those words foo and baz:
Where foo have baz all my life
However this doesn't work. Nor in regexr nor in regexpal.com.