title: Regular Expression to extract alphanumeric parts of a URL?
body: <p>Given any URL, like: </p>
  
  <pre><code>https://stackoverflow.com/v1/summary/1243PQ/details/P1/9981
  </code></pre>
  
  <p>How do I extract the numeric or alphanumeric part of the URL? I.e. the following strings from the url given above: </p>
  
  <pre><code>1. v1
  2. 1243PQ
  3. P1
  4. 9981
  </code></pre>
  
  <p>To rephrase, a regex to extract strings from a string (URL) which have at least 1 digit and 0 or more alphabet characters, separated by <code>'/'</code>. </p>
  
  <p>I tried to capture a repeating group <code>(^[a-zA-Z0-9]+)+</code> and <code>([a-zA-Z]{0,100}[0-9]{1,100})+</code> but it didn't work. In hindsight intuition does say this shouldn't work. I am unsure how do I match patterns over a group and not just a single character. </p>