title: How to regex last part of URL only?
body: <p>I want to do a regex that target the end of a url: </p>
  
  <p><code>www.company.com/orders/</code><strong>thanks</strong></p>
  
  <p>If you return from email or account page order ID is populated in the end:</p>
  
  <p>www.company.com/orders/thanks/<strong>1sfasd523425</strong></p>
  
  <p>So I only want to target the URL that ends with <strong>/thanks</strong></p>
  
  <p>This thread bring is similiar: <a href="https://stackoverflow.com/questions/8798187/how-do-i-get-the-last-segment-of-url-using-regular-expressions">How do I get the last segment of URL using regular expressions</a></p>
  
  <p>Had something similair <code>.*\/thanks\/.+</code> but target incorrectly.</p>
  
  <p><strong>EDIT: Only target URLs ending with /thanks or /thanks/</strong> </p>