Hi There,
i have workspace and trim transformer - Post/processe/Radarsat2/20240313 for example, it should leave 20240313 name of the file, but it remove 2 at the begining, 0240313 remains as file name. How to keep that “2” at the beginning?

Hi There,
i have workspace and trim transformer - Post/processe/Radarsat2/20240313 for example, it should leave 20240313 name of the file, but it remove 2 at the begining, 0240313 remains as file name. How to keep that “2” at the beginning?

Best answer by nielsgerrits
There’s also an transformer LastSectionOfStringRemover on Hub that might help you here:
https://hub.safe.com/publishers/safe-lab/transformers/lastsectionofstringremover
(split on / and keep last part)
Also the FilenamePartExtractor should work in this case.