I am trying to break down the results of Request.ServerV ariables("URL") into
just the name of the script. Currently, the output is looking like:
/lang/de/test.aspx
I want to strip the /lang/de/ and keep test.aspx. The /lang/de/ may not
always be there. Sometimes it may just be "/" or there may be more than 2
layers. I'm assuming that there should be an easy way to do this with
regular expressions, but I'm not very good at them. Any assistance would be
greatly appreciated.
--
Thank You,
Jason Williard
just the name of the script. Currently, the output is looking like:
/lang/de/test.aspx
I want to strip the /lang/de/ and keep test.aspx. The /lang/de/ may not
always be there. Sometimes it may just be "/" or there may be more than 2
layers. I'm assuming that there should be an easy way to do this with
regular expressions, but I'm not very good at them. Any assistance would be
greatly appreciated.
--
Thank You,
Jason Williard
Comment