Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    RegEx, error?

    Help wanted · · · – – – · · ·
    3
    12
    170
    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.
    • Thomas 2020
      Thomas 2020 last edited by

      Schowek01.jpg

      Why „\A” doesn’t work?

      Schowek02.jpg

      Ekopalypse Alan Kilborn 2 Replies Last reply Reply Quote 0
      • Ekopalypse
        Ekopalypse @Thomas 2020 last edited by

        @Pan-Jan

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

        1 Reply Last reply Reply Quote 1
        • Alan Kilborn
          Alan Kilborn @Thomas 2020 last edited by Alan Kilborn

          @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
          • Thomas 2020
            Thomas 2020 last edited by Thomas 2020

            @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
            • Thomas 2020
              Thomas 2020 last edited by

              but it works

              \`
              

              instead

              \A
              
              Alan Kilborn 1 Reply Last reply Reply Quote 0
              • Alan Kilborn
                Alan Kilborn @Thomas 2020 last edited by

                @Pan-Jan

                but it works …

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

                1 Reply Last reply Reply Quote 0
                • Thomas 2020
                  Thomas 2020 last edited by

                  Schowek01.jpg

                  Alan Kilborn 1 Reply Last reply Reply Quote 0
                  • Alan Kilborn
                    Alan Kilborn @Thomas 2020 last edited by

                    @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
                    • Thomas 2020
                      Thomas 2020 last edited by

                      link text
                      Schowek02.jpg

                      Alan Kilborn 1 Reply Last reply Reply Quote 0
                      • Alan Kilborn
                        Alan Kilborn @Thomas 2020 last edited by Alan Kilborn

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

                        Thomas 2020 1 Reply Last reply Reply Quote 0
                        • Thomas 2020
                          Thomas 2020 @Alan Kilborn last edited by

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • Thomas 2020
                            Thomas 2020 last edited by

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Copyright © 2014 NodeBB Forums | Contributors