Jump to content

is there a way to trim everything in front of the last backslash?


jakebur01

Recommended Posts

Is there a way to trim everything off in front of the last backslash in the string?

$trimFile = $fList[$i]; 

 

Example:

 

In this path:

\\\\myftp/downloads/tom/work/word_docs\\legal\test.pdf

 

I only want to display test.pdf.

 

Thanks,

 

Jake

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.