I have converted a few web pages into string and the string contains these lines(along with other code):
<div class="r"><a href="https://www.apple.com/ca/"
<div class="r"><a href="https://www.facebook.com/ca/"
<div class="r"><a href="https://www.utorrent.com/ca/"
but I just want to strip out the link inside the first line(https://www.apple.com/ca/
) and ignore the rest of the HTML and the code. How do I do that?