title: What characters are valid in a URL?
body: <p>I'm trying to remove the non-URL part of a big string. Most of the regexes I found are like <code>[A-Za-z0-9-_.!~*'()]</code>, but there are more things that can a url contain. Like <code>http://127.0.0.1:8080/test?v=123#this</code> for example</p>
  <p>So what are the latest characters for a valid URL?</p>