How to determine if end of URL matches "/my-phrase"
<p>I need to execute conditional code if the last part of the URL string is /my-phrase</p>

<p>How can I parse the URL for a match after the last "/" character in the URL string?</p>

<pre><code>if(end of URL is "/my-phrase")
{ //dosomething;}
else
{//something else;}
</code></pre>
