</span>
<div class="clearB paddingT5px"></div>
<small>
10/12/2015 5:49:00 PM - Seeking Alpha
</small>
<div class="clearB paddingT10px"></div>
Suppose i have a source code of a website, a part of which looks like this. I am trying to get the line between "small" and "/small". In the entire webpage there are many such lines, enveloped between "small" and "/small". i want to extract all lines which are between "small" and "/small".
I am trying to use a 'regex' function which looks like this
regex = '<small>(.+?)</small>'
datestamp = re.compile(regex)
urls = re.findall(datestamp, htmltext)
This returns only a blank space. Please advise me on this.