Regex Help - Get all files in folder which have one part of name same into an array

Hi

I have files with the following naming format.
kaiser Hospital of iceland, MDC - 21074 - ABC Spreadsheet Unlocked.xlsx
kaiser Hospital of iceland, MDC - 21074 - ABC Spreadsheet Unlocked_Copy_0.xlsx
kaiser Hospital of iceland, MDC - 21074 - ABC Spreadsheet Unlocked_Copy_1.xlsx
kaiser Hospital of iceland, MDC - 21074 - ABC Spreadsheet Unlocked_Copy_2.xlsx

I have the name of the first file “kaiser Hospital of iceland, MDC - 21074 - ABC Spreadsheet Unlocked” based on this I have to get all the files with this matching name in folder and get them into an array.

Can anyone help me with this?

Thankyou

Solved this.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.