Does anybody know how to return the following string using regex?
Input $var="http://www.mysite.com/toplevel/file.html
Output return "/toplevel/file.html"
I.e. basically how to strip out the absolute path part?
Input $var="http://www.mysite.com/toplevel/file.html
Output return "/toplevel/file.html"
I.e. basically how to strip out the absolute path part?