I am looking for a regular expression to match the fileNamePattern.
Files are pdf can have these names: 8 alphanumeric chars, -
, 4 alphanumeric chars, -
, 4 alphanumeric chars, -
, 4 alphanumeric chars, -
, 12 alphanumeric chars + .pdf
.
Examples:
5b7f991f-0726-4dd5-856e-7cea820f02c5.pdf
138bcee6-db7f-47a7-97bf-69c0b3989698.pdf
e988315b-ade7-48e5-9733-35bb59a3c28d.pdf
I am using
^[A-Z][0-9]{8}[-][A-Z][0-9]{4}[-][A-Z][0-9]{4}[-][A-Z][0-9]{4}[-][A-Z][0-9]{12}[.]pdf
However, I am not sure it is correct as I get no matches.