Take the 2-minute tour ×  I'd like to be able to parse a web
page and return any element that has a title containing exactly
4 letters.  For example:  <li><a href="test.com/dogs"
title="dogs"></a></li> <li><a href="test.com/cat"
title="cat"></a></li> <li><a href="test.com/horse"
title="horse"></a></li> <li><a href="test.com/eels"
title="eels"></a></li>  In this example, I'd like to return an
array containing 'dogs' and 'eels' since the title contains
exactly 4 characters. How can I go about doing this? Thanks!
share|improve this question XML parsers exist. Since you're
asking about Python, do a Google search for "beautifulsoup". – 
Jack Maney Dec 17 '12 at 17:59 How often must be explain per day
that markup should be parsed with HTML or XML parsers and not
with anything else? A trillion times? -1 from me –  Andreas Jung
Dec 17 '12 at 18:00 @user1833746 In the OP's defense, he did ask
'how can I go about doing this', an answer to which would be
something like Jack Maney suggested. –  RocketDonkey Dec 17 '12
a