title: Regex to find a pattern of string between slashes
body: <p>I'm looking for the right way to build the regex for this:</p>
  
  <p>I have these sites and I need cut the word <strong>string</strong> or <strong>whatever have between</strong> slashes.
  Using the <a href="https://regexr.com/" rel="nofollow noreferrer">https://regexr.com/</a></p>
  
  <p>I had this result. Someone can help me?</p>
  
  <pre><code>http://example.com/string/anotherThings
  http://example.com/string/anotherThings
  http://example.com/string_string/anotherThings
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/hpykr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hpykr.png" alt="example"></a></p>