 <p>If the client name section of the URL is after the <code>access-guid/</code> and before the next <code>/</code>:</p> <pre><code>http://www.disabledgo.com/access-guide/the-university-of-manchester/176-waterloo-place-2 |----------------------------| </code></pre> <p>you need to use a negated character class to only match <code>university</code> before the regex reaches that rightmost <code>/</code> boundary.</p> <p>As per the <a href="https://support.google.com/analytics/answer/2853546?hl=en&amp;ref_topic=1727167&amp;vid=1-635784241538251930-2972435195#extract" rel="nofollow">Reference</a>:</p> <blockquote> <p>You can extract pages by Page URL, Page Title, or Screen Name. Identify each one with a regex capture group (Analytics uses the first capture group for each expression)</p> </blockquote> <p>Thus, you can use</p> <pre><code>/access-guide/([^/]*(universit(y|ies)|colleges?)) ^^^^^ </code></pre> <p>See <a href="https://regex101.com/r/oU0hT1/3" rel="nofollow">demo</a>.</p> <p>The regex matches</p> <ul> <li><code>/access-guide/</code> - leftmost boundary, matches <code>/access-guide/</code> literally</li> <li><code>[^/]*</code> - any character other than <code>/</code> (so we still remain in that customer section)</li> <li><code>(universit(y|ies)|colleges?)</code> - <code>university</code>, or <code>universities, or</code>college<code>or</code>colleges` literally. Add more if needed.</li> </ul>