Hello, @alan-kilborn, @Scott-Sumner ans All,
Bravo, Scott ! Just for info : the case of the ending word, to look for, must be different from any of the forms which have to be avoided
For instance, let suppose all the cased versions of the five-letters word table, below :
table tablE tabLe tabLE taBle taBlE taBLe taBLE tAble tAblE tAbLe tAbLE tABle tABlE tABLe tABLE Table TablE TabLe TabLE TaBle TaBlE TaBLe TaBLE TAble TAblE TAbLe TAbLE TABle TABlE TABLe TABLEThen the regex (?-i)(?!TABLE|Table|table)(?i)TablE would find all cased versions of table, except for TABLE, Table and table.
The regex to search for, in any case (?i)TablE is, of course, different from any of the 3 versions to avoid :-))
When the regex engine position is right before any cased version of the word table, the part (?-i)(?!TABLE|Table|table) just verifies that, at this position, the word, to be read, is different from, either, the forms TABLE, Table or table, in that exact case. That’s all -:))
Cheers,
guy038