title: Extract part of URL with Google tag manager
body: <p>So i have this url "<a href="https://www.site.be/pand/titel-van-het-pand-t8500-17082-4" rel="nofollow noreferrer">https://www.site.be/pand/titel-van-het-pand-t8500-17082-4</a>" and i have to extract the reference number at the back of the url. In this example "t8500-17082-4" with GTM to put into a custom dimension like this:</p>
  
  <pre><code>var dimensionValue = 'REFERENCE_CODE_HERE';
  ga('set', 'dimension1', dimensionValue);
  </code></pre>
  
  <p>The reference codes at the eind of the url could start with either -t8... or t9... </p>