Incredible Newbie Question - but take pity on me...

Incredible Newbie Question - but take pity on me...

This is incredibly lame, I know, but... I need some "big picture" help.

I am looking for an HTML search engine that allows a search to include attribute classes and other information contained within HTML tags.

For example:
 
<p class="title-chapter">Really Exciting Title Name here</p>
<p class="angryVGN">Angry Comment here</p>
 
I would like to be able to run a search to do the following:  "return all text contained in a <p> when the <p> class="title-chapter".

So in this case it would return "Really Exciting Title Name here" but NOT "Angry Comment here" because "Angry Comment here" has a class value of "angryVGN" etc.

From what I can tell, this is relatively trivial with Jquery.

But I have wet feet and cold shoulders and all the rest.

IS it relatively trivial?

Could I cook up a custom search function which acts like a standard HTML search function (google) but can do a whole lot more (search within tags, read/process class values, etc.)?










 
--confused but optimistic