• Login
Community
  • Login

When to use (?-si)?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 3 Posters 666 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.
  • K
    Knowledge Base
    last edited by Sep 9, 2019, 9:37 AM

    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

    E 1 Reply Last reply Sep 9, 2019, 11:23 AM Reply Quote 0
    • E
      Ekopalypse @Knowledge Base
      last edited by Sep 9, 2019, 11:23 AM

      @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
      • K
        Knowledge Base
        last edited by Sep 9, 2019, 11:36 AM

        Hi Ekopalypse,

        thanks a lot.

        1 Reply Last reply Reply Quote 1
        • P
          PeterJones
          last edited by PeterJones Sep 9, 2019, 4:43 PM Sep 9, 2019, 4:42 PM

          @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
          2 out of 4
          • First post
            2/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors