• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 576
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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