title: how to remove trailing slash with page number from url using jquery or javascript
body: <p>I have URLs like this <a href="http://domain.com/questions/ask/2" rel="nofollow">http://domain.com/questions/ask/2</a></p>
  
  <ol>
  <li><p>I want to find the trailing slash with page number from URLs and then remove the trailing slash with page number using jquery or javascript.</p></li>
  <li><p>I want the URLs like this <a href="http://domain.com/questions/ask" rel="nofollow">http://domain.com/questions/ask</a></p></li>
  </ol>
  
  <p>Please help me to solve. Thanks in advance</p>
  
  <p>UPDATE<Br />
   The URLs are /1, /2 and so on... the page number is dynamic </p>