title: Java regex for URL
body: <p>I need an regex, which will  match the next urls:</p>
  
  <pre><code>(http|https)://(www)&lt;my domain here&gt;
  (http|https)://(www)&lt;my domain here&gt;/page1
  (http|https)://(www)&lt;my domain here&gt;/page1/.../
  (http|https)://(www)&lt;my domain here&gt;/page1/...?a=b
  (http|https)://(www)&lt;my domain here&gt;/page1/...?a=b&amp;c=d...
  </code></pre>
  
  <p>I have one regex, but I don't know how to edit it</p>
  
  <pre><code>^(http:\/\/|https:\/\/)?(www.)?([a-zA-Z0-9]+).[a-zA-Z0-9]*.[a-z]{3}.?([a-z]+)?$
  </code></pre>