Community
    • Login

    When to use (?-si)?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 1.1k Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          Knowledge Base
          last edited by

          Hi Ekopalypse,

          thanks a lot.

          1 Reply Last reply Reply Quote 1
          • PeterJonesP Offline
            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors