Setting just the page name as a var

wxdqz

New Member
I am trying to get only the page file name as a variable so I can us it later. I can get the entire URL, of course, but I just want the file name itself. For example, in a URL of <!-- m --><a class="postlink" href="http://www.server.com/web/dir1/page.html">http://www.server.com/web/dir1/page.html</a><!-- m -->, I just want to be able to get "page.html" as a variable.

Is there anyway I can stip out everything but the page file name?
 
Back
Top