truncate file path from left, not from right ( sprintf ?)
Hi maxers
i want to shorten a file path, ideally, it would leave only the top right 2 folders of the path, so this:
Mycomputer:/Users/myself/Music/My Samples/keep this path/keep this path/
would end up with:
/keep this path/keep this path/
how can I truncate the string like that?
The only thing i found is printf in attached example.
it works, but it would truncate from the right and not by words but letters.
greetings
emanuel
Max Patch
Copy patch and select New From Clipboard in Max.
`
regexp. Not an easy one to learn, but not impossible either.
Max Patch
Copy patch and select New From Clipboard in Max.
_
johan
Thanks a lot!
atoi zl slice itoa ...