title: Extract links from web page in Scala
body: <p>I want to extract the links from a web age to create a tree of links that have the same host. I found this regular expression, but it doesn't work really well...Have you some ideas ?</p>
  
  <pre><code>val r = "&lt;a href =\"([^\"]*)\"".r
  </code></pre>
  
  <p>I looked at this page too, but it's in Java and the "translation" in Scla is pretty hard to get</p>
  
  <p><a href="https://stackoverflow.com/questions/5120171/extract-links-from-a-web-page">Extract links from a web page</a></p>