I wounder if anyone could tell me what I'm doing wrong with this code. I have a HTML and want to read out the Founded in year - which in this case is 1949. How do I that? Please note the space and blank line.
Below is the code
<h4> Founded in
</h4></td><td><h5> <!--10305--> 1949</h5></td></tr> <tr>
And this is the code that I'm using. And nothing is being printed.
myf = 'THE HTML HERE'
myf.replace("<!--10305-->", "")
year = re.findall(r"<h4> Founded in.*? (.*?)</h5></td></tr> <tr>", myf, re.DOTALL)
print year
Any help would be appreciated.