Match multiple lines inside files from pattern ? (Python) : <p>I am trying to verify if inside a file there is the same section as given as pattern inside my script.</p>

<p>I tried to open the file and readlines into a list, but it was not successful when i tried to match the pattern with the file.</p>

<p>Example:
Input file:</p>

<ol>
<li>This is the first line </li>
<li>Second line </li>
<li>Third line</li>
</ol>

<p>pattern : </p>

<ol>
<li>Second line </li>
<li>Third line</li>
</ol>

<p>How can i match if the pattern is in my file ?</p>

<p>Thank you</p>
