Hello! This is probably a really easy question, but I want to match a string if:
ABC is in the string
Then some characters…
and
XYZ and JKL are NOT in the string
Another way to put it would be… the string can end in anything but XYZ and JKL.
This is how I match if abc is in the string AND XYZ or JKL is in the string. How do I do the opposite for XYZ and JKL?
m/ABC.*((XYZ)|(JKL))$/i
Edit: I am not using any scripting language, so any logic outside of the regex is out of the question. To the best of my knowledge, this command-line tool accepts Perl-like regex.