Community
    • Login

    When to use (?-si)?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 655 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Knowledge BaseK
      Knowledge Base
      last edited by

      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

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @Knowledge Base
        last edited by

        @Knowledge-Base

        these are the so called modifiers.
        the s handles if the dot wildcard can match end of line chars as well
        the i 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.

        1 Reply Last reply Reply Quote 2
        • Knowledge BaseK
          Knowledge Base
          last edited by

          Hi Ekopalypse,

          thanks a lot.

          1 Reply Last reply Reply Quote 1
          • PeterJonesP
            PeterJones
            last edited by PeterJones

            @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.

            1 Reply Last reply Reply Quote 2
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors