Get a list of values with a specific name

Hi;

Into my script, I launch a search which diplays a list of reports and I must get only the reports which are a specific name.
My web Page I have a attribute "objIds" with a list of values which represent a ligne like this :




.....


report OK


....

I must get only the objIds with the text "report OK".

Regards