The regular expression that can be used to find all non-PDF files under a file path with a specific string, while excluding folders could be:
^(?!.*\/)[^.]+.((?i)(?
This regex will match any filename that does not have "pdf" as its file extension, does not start with a forward slash character "/" (to exclude folders), and contains the specific string that you are looking for.
Here's a breakdown of how the regex works:
Note that the specific string that you are looking for should be inserted into the regex where appropriate, replacing the "(?i)" in the regex.
Asked: 2021-10-20 11:00:00 +0000
Seen: 7 times
Last updated: Jan 24 '22