When to use (?-si)?
-
Hello,
in another post I found the expression “(?-si)(location='WINDOWS[0]).*?(?=[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.
thes
handles if the dot wildcard can match end of line chars as well
thei
handles 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.
-
Hi Ekopalypse,
thanks a lot.
-
@Ekopalypse said:
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.