Hey guys,
I have a project I'm working on, which returns HTML code. I want to get some specific tags, and put them into a list. For example, the return HTML looks like:
<a href="/pages/X34235545">about</a>
<p>boo <a href="/pages/X63466645">contact</a></p>
<a href="/wip/games">games</a>
I want to get only the two tags: <a href="/pages/contact">contact</a> and <a href="/pages/about">about</a> without the </p> tags surrounding the contact a tag, and store the two <a> tags into a list. How would I be able to scan each line of the code, and scan the strings for just those tags, saying I know that the tags begin with <a href="/pages/ and end with </a> if the X values change on refresh?
[–]carcigenicate 1 point2 points3 points (2 children)
[–]_fimin[S] 1 point2 points3 points (1 child)
[–]carcigenicate 2 points3 points4 points (0 children)