regex to match multiple lines of everything between code example Example: regex find lines containing two strings ^(?=.*\bstring1\b)(?=.*\bstring2\b).*$