I have some HTML content where there are many links as the following pattern:

<a href="http://example.com/2013/01/problem1.html";>Problem No-1</a><br />

I want to filter all the links  into a list as:
['http://example.com/2013/01/problem1.html', 
'http://example.com/2013/02/problem2.html']

How to do it using Python Regular Expression?

If I want to filter all the links into a dictionary as: 
['http://example.com/2013/01/problem1.html':'Problem No-1', 
'http://example.com/2013/02/problem2.html ':'Problem No-2',]

How do I do it?                                           
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to