• Login
Community
  • Login

RegEx, error?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
12 Posts 3 Posters 2.4k 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.
  • T
    Thomas 2020
    last edited by Jul 30, 2020, 10:02 AM

    Schowek01.jpg

    Why „\A” doesn’t work?

    Schowek02.jpg

    E A 2 Replies Last reply Jul 30, 2020, 11:30 AM Reply Quote 0
    • E
      Ekopalypse @Thomas 2020
      last edited by Jul 30, 2020, 11:30 AM

      @Pan-Jan

      because Npp treats the end of the match + 1 as a next start position.

      1 Reply Last reply Reply Quote 1
      • A
        Alan Kilborn @Thomas 2020
        last edited by Alan Kilborn Jul 30, 2020, 11:59 AM Jul 30, 2020, 11:58 AM

        @Pan-Jan

        There are some workarounds that can make \A logic work more like one would expect.

        See this thread for one:
        https://community.notepad-plus-plus.org/topic/16104/how-to-find-and-highlight-a-specific-occurance-of-a-symbol/

        1 Reply Last reply Reply Quote 1
        • T
          Thomas 2020
          last edited by Thomas 2020 Jul 30, 2020, 2:23 PM Jul 30, 2020, 2:23 PM

          @Alan-Kilborn said in RegEx, error?:

          There are some workarounds that can make \A logic work more like one would expect.

          it is proposed to replace “\A”:

          (?<!\n|\r|\f)
          but it doesn’t work

          1 Reply Last reply Reply Quote 0
          • T
            Thomas 2020
            last edited by Aug 1, 2020, 9:31 AM

            but it works

            \`
            

            instead

            \A
            
            A 1 Reply Last reply Aug 1, 2020, 11:54 AM Reply Quote 0
            • A
              Alan Kilborn @Thomas 2020
              last edited by Aug 1, 2020, 11:54 AM

              @Pan-Jan

              but it works …

              How come you don’t show a screenshot of the “working” version?

              1 Reply Last reply Reply Quote 0
              • T
                Thomas 2020
                last edited by Aug 1, 2020, 5:28 PM

                Schowek01.jpg

                A 1 Reply Last reply Aug 1, 2020, 8:06 PM Reply Quote 0
                • A
                  Alan Kilborn @Thomas 2020
                  last edited by Aug 1, 2020, 8:06 PM

                  @Pan-Jan

                  Hmmmmm.

                  What I meant was: If you contend that \` is equivalent to \A, why don’t you show screenshots of the Find dialog and some results showing it working, much like your earlier screenshots in this thread.

                  1 Reply Last reply Reply Quote 0
                  • T
                    Thomas 2020
                    last edited by Aug 1, 2020, 10:09 PM

                    link text
                    Schowek02.jpg

                    A 1 Reply Last reply Aug 1, 2020, 10:18 PM Reply Quote 0
                    • A
                      Alan Kilborn @Thomas 2020
                      last edited by Alan Kilborn Aug 1, 2020, 10:19 PM Aug 1, 2020, 10:18 PM

                      @Pan-Jan

                      Yes, but that’s not what you said before.
                      But, you have demonstrated in the past an unclearness about “straight” double quotes and “curled” double quotes, so I suppose you consider \` and \’ to be the same thing.

                      Aside from your inaccuracy about the equivalency for \A (let’s put that behind us), you also said “but it works”, so can you demonstrate to us how you think it works?

                      I don’t think you can, because your posts don’t make a lot of sense.
                      I’m sure you will hide behind not being a native English speaker, but others have tried to point out to you that language-translators can make non-English speakers sound truly like English speakers – if one is willing to use them, correctly.

                      T 1 Reply Last reply Aug 2, 2020, 7:06 AM Reply Quote 0
                      • T
                        Thomas 2020 @Alan Kilborn
                        last edited by Aug 2, 2020, 7:06 AM

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • T
                          Thomas 2020
                          last edited by Aug 2, 2020, 7:38 AM

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          10 out of 12
                          • First post
                            10/12
                            Last post
                          The Community of users of the Notepad++ text editor.
                          Powered by NodeBB | Contributors