❔ What would be the best way to dynamicly cut in a string>
So for example I have this:
"C:\Users\USERNAME\Documents\Paradox Interactive\Hearts of Iron IV\mod\HoI4-LotrMod\gfx\interface\goals\Generic\GFX_goal_generic_industry_I.tga"
But Im only intrested in the location of the file within the folder "HoI4-LotrMod" altough that folder could in theory be called anything.
What would be the best way to make sure I would always end up with the last "gfx\interface\goals\Generic\GFX_goal_generic_industry_I.tga" part
"C:\Users\USERNAME\Documents\Paradox Interactive\Hearts of Iron IV\mod\HoI4-LotrMod\gfx\interface\goals\Generic\GFX_goal_generic_industry_I.tga"
But Im only intrested in the location of the file within the folder "HoI4-LotrMod" altough that folder could in theory be called anything.
What would be the best way to make sure I would always end up with the last "gfx\interface\goals\Generic\GFX_goal_generic_industry_I.tga" part