Hi There
I am hoping that someone can help me, I am using Javascript and asp
I have this string /folder1/folder2/pagename.asp
I need a regex to strip the /pagename.asp from the string
pagetype.replace(/\/.*?\.asp/ig, '');
The regex above is halfway there but the problem is that it strippes from the beginning / everything between the / and the .asp
how do I make the regex lazy so that it will only strip between the last / and the .asp?
Any help would be appreciated!