How would I go about filtering out files that include a certain string:
Say I'm filtering file paths with the following regex
"/.xml$|.json$/i"
And I'd like to ignore files that are xml but include _unwanted_string
in the name
For example:
file_name_unwanted_string.xml
SOMEOTHERNAME_unwanted_string.xml
NAME3_unwanted_string.xml
NAME3_unwanted_string_MORE_TEXT.xml
should all not be caught in the regex.
Is this possible with regex?