Explain, please, there is a line:
<td><span class=small>1.</span><br><a href='/roder/re3rr70' title='0r0t3 (1et).jpg'>picture</a></td>
I need to choose from it /roder/re3rr70 and 0r0t3 (1et).jpg and concatenate the result to get the following link: http://roder/re3rr70/0r0t3 (1et).jpg , but stuck with this:
>>> import re >>> text = "<td><span class=small>1.</span><br><a href='/roder/re3rr70' title='0r0t3 (1et).jpg'>picture</a></td>" >>> d = re.findall(r"<a href='(.+?)'>(.+?)</a>", text) >>> print d [("/roder/re3rr70' title='0r0t3 (1et).jpg", 'picture')] That is, I have everything that is enclosed between the <a></a> tag, but I don’t know how to write the conditions so that after the href= tag the title value is output and the rest is discarded. Explain how to set the conditions?