I would need to match words/abbreviations that are NOT written in the "standard" way, whatever it might be.
Should work similarly than \bOK\b to match in this manner:
Match here -> Ok
Match here -> oK
Match here -> ok
Would not match here -> OK
I have lot of words that should be checked this way and if it is longer than couple character adding check for all permutations of different cases are very large large, very quick.
So looking for more elegant solution instead of something making regexps for all permutations or common wrong casing like this:
(?-i)\bSaas\b
(?-i)\bsAAS\b
(?-i)\bSAAS\b
...
Instead of just matching a word with case different that "SaaS" that I would like to find (kind of misspelled) non standard case
This is not something that regex alone is useful to solve. You should just do a second check to see whether it matches the thing you don't want.