If we talk about scrapping data then how to use regex is what You have to learn. =regex']Wiki - Regex
Parse content is just helper action. So go with Regex and learn it.
About logic for Your scrapping, I can not answer much, because I do not understand what is Your goals...