I have text with file names scattered around the world. File names appear in the text as follows:
|test.txt|
|usr01.txt|
|usr02.txt|
|foo.txt|
I want to match file names that do not start with usr. I came up (?<=\|).*\.txt(?=\|)with a file name match, but that doesn't exclude those that start with usr. Is this possible with regular expressions?
source
share