When to use (?-si)?
in another post I found the expression “(?-si)(location='WINDOWS).*?(?=[option)”.
I tried to find out what (?-si) means because searching and replacing in this example also works without (?-si), but didn’t find anything.
Can someone tell me exactly what (?-si) does?
Thanks for your help
these are the so called modifiers.
shandles if the dot wildcard can match end of line chars as well
ihandles the case sensitivity
a minus in from of one modifier disables the default behavior of that modifier.
You can read more about that here, (which at the moment is down) or here.
thanks a lot.
read more about that here, (which at the moment is down)
Down for good, actually. The githubio link was always meant as temporary. https://npp-user-manual.org/docs/searching/#regular-expressions is the new long-term home, linking directly to the regex docs.