I want to remove the "/" from the end of a URL and add .asp to the end
e.g. abc.com/page1/ needs to be converted to abc.com/page1.asp
For some values, the "/" can be the second occurrence.
e.g. abc.com/category1/page1/. In this case I need to replace the / at the end and not the one before "page1". So what I wanted in this case is abc.com/category1/page1.asp
In rare cases, the "/" can be the third occurrence which needs to be replaced with ".asp".
Bookmarks