title: How to extract a URL from a Tweet with a JavaScript RegEx?
body: <p>Assuming that I have the tweet stored as a string in a JS variable...</p>
  
  <p>How to extract a URL from a tweet with a JavaScript RegEx?</p>
  
  <p>This should be much easier than extracting a URL from a string, because:</p>
  
  <p>I will assume that anything that starts with http or www and ends with a blank space (or end of tweet) is a URL.</p>