On using this regular expression in python :
pathstring = '<span class="titletext">(.*)</span>'
pathFinderTitle = re.compile(pathstring)
My output is:
Govt has nothing to do with former CAG official RP Singh:
Sibal</span></a></h2></div><div class="esc-lead-article-source-wrapper">
<table class="al-attribution single-line-height" cellspacing="0" cellpadding="0">
<tbody><tr><td class="al-attribution-cell source-cell">
<span class='al-attribution-source'>Times of India</span></td>
<td class="al-attribution-cell timestamp-cell">
<span class='dash-separator'> - </span>
<span class='al-attribution-timestamp'>‎46 minutes ago‎
The text find should have stopped at first "< /span>".
Please suggest whats wrong here.