Thanks for the reply, How I would I use regexp here, I can't seem to get my head around it. As an example the page may display something liket his,
Breakfast which is a heading and then below it
then we will have lunch as another heading and below it
My problem is I need to find the main heading and then list the item below it and the same for lunch, but the challenge is that for another page an item that appears as lunch could be breakfast for another, which is why I need to extract the information in the order they appear, something like a magnifying glass reading as it goes along and
when it find something , it stores it in an array or something.
I would appreciate any help.