I'm building some regex searches and ran into one I can't seem to solve. I'm searching for all incorrect capitalization and punctuations of Split "S" (the aircraft maneuver). The expression I'm using is:
[Ss]plit[ -]“?[Ss]”?(?<!Split “S")
The goal is to find all combinations of initial caps and punctuation (space, hyphen, smart quoteddbl) and using a lookahead negation (I think that's what it's called) to exclude the correct term Split “S”. It works great at finding all the variations, but also finds Split “S”...ignoring the right double quote punctuation. I'm having no luck, so thought I'd turn to the experts.
This type of negation works great for other terms, such as “V” Diagram or System M. It appears the smart double quotes are the problem. Using the expression above, I was expecting it to find: split “S” Split-S Split S Split S, but not Split “S”. Instead it finds all the terms, including Split “S (excepting the left double quote).
I'm using FrameMaker ExtendScript with Perl regex.