<div dir="ltr"> Hello, <br><br>I've the following results from Difflib.Compare() which I want to parse them using the regular expression to find out the the values that have changed.<br><br> <font size="1"><span style="font-family: courier new,monospace;"> ######################################################################</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  Testing DLL interface</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  ######################################################################</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  Input File:    c:\12.txt</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  Config File:    c:\abc.ini</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  ######################################################################</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  Results:-</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  -------</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">- Analysis Time (Iterations = 1) = 0.0449145s</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">?                                       ^^ ^</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">+ Analysis Time (Iterations = 1) = 0.0447347s</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">?                                       ^^ ^</span><br style="font-family: courier new,monospace;"><br> <span style="font-family: courier new,monospace;"> Width = 0.999989</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  Height = 0.044 </span>  <br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">- Length = 10</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">?           ^</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">+ Length = 11</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">?           ^</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  End of Results</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  ######################################################################</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  Testing DOTNET interface</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  ######################################################################</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  Input File:    c:\12.txt</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  Config File:    c:\abc.ini</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  #######################################################################</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  Results:-</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  -------</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">- Analysis Time (Iterations = 1) = 0.0449145s</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">?                                       ^^ ^</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">+ Analysis Time (Iterations = 1) = 0.0447347s</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">?                                       ^^ ^</span><br style="font-family: courier new,monospace;"><br></font><font size="1"><span style="font-family: courier new,monospace;">  Width = 0.999989</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  Height = 0.044 </span></font><br><font size="1"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">- Length = 12</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">?           ^</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">+ Length = 13</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">?           ^</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  End of Results</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">******</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"></font>How Can I extract the headings out of this file? The headings are:<br>
<br><font size="1"><span style="font-family: courier new,monospace;">  ######################################################################</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  Testing DLL interface</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  </span></font><font style="font-family: courier new,monospace;" size="1">######################################################################<br> <br>  Input File:    c:\12.txt<br>
  Config File:    c:\abc.ini<br>   <br>  ######################################################################<br><br><br><font size="2"><span style="font-family: arial,helvetica,sans-serif;">< Here I want to display only the values that differ i.e. the lines prceded with +,?,- signs ></span></font><br>
<br><br>  ######################################################################<br> <br>  Testing DOTNET interface<br>   <br>  ######################################################################<br>  Input File:    c:\12.txt<br>
  Config File:    c:\abc.ini<br> <br>  #######################################################################</font><br><br><br>I intent to show only the things that differ with their proper headings(as above)<br><br>Please help me to get the heading stuff out.<br>
<br>Regards,<br>Rajat<br>
</div>