I have a collection of files with a certain structure:
COMPANY_DE-Actual-Contents-of-File-RGB-ENG.pdf
Breakdown:
- COMPANY -> Company name, fixed
- DE -> Office location, fixed options: '_DE', '_BE', or absent for non-location-dependent files, if present always preceded by an underscore and company name
- Actual-Contents-of-File, string glued with dashes
- RGB -> Colormode, fixed options: 'RGB', 'CMYK', 'PMS', or absent for non-color related files
- ENG -> Language of file, fixed options: 'GER', 'ENG', or absent for non-text related files
- pdf -> Extension, can be anything
In the best case my result would be an array with above info with named keys but wouldn't know where to start.
Help would be greatly appreciated!
Thanks, Knal
Sorry to have been so unclear, but a few variables are not always present in the filename: - DE -> fixed options: '_DE', '_BE', or absent - RGB -> Colormode, fixed options: 'RGB', 'CMYK', 'PMS', or absent - ENG -> Language of file, fixed options: 'GER', 'ENG', or absent