title: In Lua, how to find the end of an URL?
body: <p>I try to parse a string with http URL in it, for example, the string is like</p>
  
  <p><code>str = "http://www.abc.com?id=123&amp;key=456 and more text here"</code> </p>
  
  <p>I want to know where the http url link ends, basically I use</p>
  
  <pre><code>string.find(str, "......")
  </code></pre>
  
  <p>what pattern can I put in there, so that it would consider the URL ends? </p>