Jump to content

is there anyway to remove everything before the 4th / in a string?


wmguk

Recommended Posts

hey,

 

I have a string ../../clients/trial/KW-07-05-002.jpg and i want to just get KW-07-05-002

 

so i need to remove the .jpg and everything including the 4th /

 

is there anything that would do this?

I was showed some code earlier for just using 3 letters out of a string, but i cant get that to work for this... :(

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.