[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 571
  • Last Modified:

Remove everything before the last Slash

Hi to all,

I am looking for a regular expression that will remove everything before the last slash in the following string:
https://mysite.com/OfficeSupply/DXR.axd?r=0_193-f8_D3

That will leave me with just the following:
DXR.axd?r=0_193-f8_D3

Thanks
0
ALawrence007
Asked:
ALawrence007
1 Solution
 
farzanjCommented:
Language?
Try substituting .*\/ with nothing
In Perl: s/.*\///
0
 
ALawrence007Author Commented:
Thanks farzanj
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now