title: how to detect and get url on string javascript
body: <p>how to detect and get url on string javascript?</p>
  
  <p>example :</p>
  
  <pre><code>var string = "hei dude, check this link http:://google.com and http:://youtube.com"
  </code></pre>
  
  <p>how to get result like this from my string :</p>
  
  <pre><code>var result = ["http:://google.com", "http:://youtube.com"]
  </code></pre>
  
  <p>how do that?</p>