I am new to regex and I spent half of my day to solve this question. I tried to search for answers, but couldn't find similar example.
I need to match strings if their end does not include char combinations such as (L|R|MIR)..
My tries:
1234.567.89.w001.*(?!R|L|MIR)\.dwg
1234.567.89.w001[^.]*(?!R|L|MIR)$\.dwg
and more..
Possible outcomes:
Im not an expert at regex but when I tested this, outcomes 1 and 2 returned true, the rest returned false.
1234\.567\.89\.w001(?!.*(R|L|MIR)).*\.dwg
You were very close, you just needed to include the 'allow any character' .* inside the lookahead.
Also make sure you \ escape the . because in regex the . character means any character not the . itself.
If you're new to regex, try using https://regex101.com. Thats what I use to check mine.