title: How to trim and split URL string
body: <p>How could I just extract the text <strong><code>androiddev</code></strong> from the following string in JavaScript?</p>
  <pre><code>https://www.reddit.com/r/androiddev/comments/49878b/droidcon_sf_is_11_days_away/
  </code></pre>
  <p>I tried trimming it from the back, but I'm still stuck with the front part.</p>
  <p>Been stuck at this for a few hours now, would really appreciate any help!</p>