mercredi 6 juillet 2016

Regex to remove characters from string upto 3rd last occurance of "/"?

input

string = "/home/188/tool/public/style_photos/111111117/Detail.jpg"

expected

output = "/style_photos/111111117/Detail.jpg"

what will be the regex to do this. Please help me.

Aucun commentaire:

Enregistrer un commentaire