title: How can I write to check a URL?
body: <p>A friend of mine requested to write a simple code to check whether a URL ends with asp or not. I am thinking about accepting the URL as string and checking the last tree letters if it's as or not. I just want to check is there any ways to  write this code. (of course there are plenty of ways but it need to be simple)</p>
  
  <p>Thanks in advance</p>