Match entire document not just sentence in Regex
<p>If I want to match 'Foo' and 'Bar' if both are in a document how do I include ANYWHERE not just sentence?</p>

<p><a href="https://regex101.com/r/lW3rJ3/1" rel="nofollow">https://regex101.com/r/lW3rJ3/1</a></p>

<p>Is set to global and shows match on line 1 but not later in the document.</p>