title: What is a good regular expression to match a Custom URL?
body: <p>I need to regularize url with many cases in java.</p>
  <ul>
  <li>custom1://www.test.com:6666/path1/path2</li>
  <li>custom2://www.test.com/path1/path2</li>
  <li>custom3://www.test.com</li>
  <li><a href="http://www.test.com:6666" rel="nofollow noreferrer">www.test.com:6666</a></li>
  <li><a href="http://www.test.com:666" rel="nofollow noreferrer">www.test.com:666</a></li>
  </ul>
  <p>if this case, what can i use regex..?</p>