To add to what grep stated, with HTML you should look at the helper tools in CPAN to go through the HTML. One good one is http::parser
Reasons:
More than one person has read the code, they most likely thought of more items that could appear on the html page
the overhead is higher, but your not re-inventing the wheel.
What if you want to search for more than one thing in a week? In a year? Do you want to rewrite your search?
Did I mention re-invent the wheel thing?
--
Even smart people are dumb in most things...