0

Is there a way to identify various Excel attachments within a RegEx, specifically with a "matches n times" quantifier?

Looking for a RegEx to detect instances where four or more Excel files are in an attachment - either of the below seem to work when looking for .xlsx or .xlsm files, but I'm unsure how to add the quantifier of four or more files.

\w+\.(xlsx|xlsm){2}
[a-z0-9-]+\.(?:xlsx|xlsm)

0 Answers0