how i can check that the url ends with /
<p>How i can check that the url i have "/" at the end?</p>

<p>when i try this</p>

<pre><code>(URL.LastIndexOf('/') != -1)
</code></pre>

<p>It gives me true even it does not have it. how i can check the whole string has "/" at the end, like <code>google.com/</code> have "/" at the end and <code>google.com</code> does not have it.</p>

<p>how i can do this ?</p>
