Hi,
What is the best way to check of the format of a filename complies to a standard?
Our standard looks like this: BC1234-BAM-XX-XX-BQ-CN-0085.docx
(Project-Originator-Level-Location-Type-Role-Number)
Project is alphanumerical 6 characters
Originator is alphanumerical 3 characters
Level, Location, Type and role are alphanumerical 2 characters
Number has a minimum length of 4 characters (so below 1000 leading zero's are added)
I was thinking to use find to check if the - appears 6 times and substring to check if they are on the right position
substring(variables('filename'), 6,1 ) should be a - sign.
I'm not sure how to put this together.