I have to find all strings starting with //MARK that do not contain sting ABCDS. I had some trials but all failed. Biggest question here is to mark set A-B.
(\/\/[ ]*MARK[ \t]*[:]*[ \t]*[^\n(?P=ABCD)]*)
It should work with:
//MARK: MarABdasdsd
//MARK sthIsHere
But should not match:
//MARK: great marABCDE
I am able to find all cases but do not know how to remove this one. I can use only single regular expression. I am aware of many posts negate the whole regex pattern when negative lookaround doesn't work
Any ideas?