I'm debugging some Java code that uses RegexFileFilter
from Apache Commons IO with the following regex:
(?:custpartnum).*(?:8798518684708).*
This matches the following strings:
custpartnum-en-8798518684708.csv_20180612152233580
custpartnum-en-8798518684708.csv_filtered_20180612152300971
I'm trying to tell it to not match on the string containing filtered
?
I tried this but it still matched both strings:
(?:custpartnum).*(?:8798518684708).*(?!filtered)