Rails split URL into different parts : <p>How can I split this URL format into 3 chunks as shown in image?</p>

<p><a href="https://i.stack.imgur.com/nablk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nablk.png" alt="enter image description here"></a></p>

<p>I need to be able to access all 3 elements separately.</p>
