I have this code:
reg = re.search('<div class="col result_name">(.*)</div>', html)
print 'Value is', reg.group()
Where 'html' contains something like this:
<div class="col result_name">
<h4>Blah</h4>
<p>
blah
</p>
</div>
But it's not returning anything.
Value is
Traceback (most recent call last):
File "run.py", line 37, in <module>
print 'Value is', reg.group()