title: regex pipe delimiter with groups
body: <p>I have a url within a URL that's not encoded. It looks like this</p>
  <pre><code>https://myhost.mydomain.com/pnLVyL7HjrxMlxjBQkhcOMr2WUs=/400x400/https://myhost.mydomain.com/images/98f9a734-52e2-4616-adf7-bf0165bbf738.png
  </code></pre>
  <p>My domain can be <code>mydomain.com</code> or <code>mydomain.io</code> . Also
  The <code>/400x400/</code> part can actually vary and be like <code>/blahblah/XxY/blahblah</code> or it can be totally missing. The image can be <code>jpg, jpeg, png</code></p>
  <p>I want to extract the second part of the URL at the end</p>
  <pre><code>https://myhost.mydomain.com/images/98f9a734-52e2-4616-adf7-bf0165bbf738.png
  </code></pre>
  <p>I have regex like this</p>
  <pre><code>https://myhost.mydomain.com/[a-zA-Z0-9=]*/.+[\/a-zA-Z0-9]?(/https://[a-zA-Z0-9=-]*.mydomain.(com|io)/images/[a-zA-Z0-9-]*.(png|jpg|jpeg))
  </code></pre>
  <p>This identifies it as 4 groups
  <a href="https://i.stack.imgur.com/AXhOY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AXhOY.png" alt="enter image description here" /></a></p>
  <p>However, I want to extract the second URL as a group - so the whole <code>https://myhost.mydomain.com/images/98f9a734-52e2-4616-adf7-bf0165bbf738.png</code></p>
  <p>Can you please help me fix my regex? Thanks !</p>