I have to remove some parts of a string like this:
customers/00000000-0000-0000-0000-000000000111/areas/00000000-0000-0000-0000-000000000222/orders/00000000-0000-0000-0000-000000000555/invoices/00000000-0000-0000-0000-000000000777/employees/00000000-0000-0000-0000-000000000213.gz
To get the path without the uuids but with the file extension. It should look like
customers/areas/orders/invoices/employees/.gz
How can I do this? With Matcher or substring? Which is best option? Is there any custom regex that I can use to remove UUIDs from the string?