Community

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

    "Invalid regular expression" error after crossing line ~3000000

    Help wanted · · · – – – · · ·
    4
    5
    45
    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.
    • B
      Bahaa Eddin ツ last edited by Bahaa Eddin ツ

      I’m using @guy038 regex list to mark 2 lines after a specific word, But I noticed that the regex fail after crossing line ~3000000,… And sometimes it doesn’t mark all the lines, But I can find the lines that should be bookmarked using the same regex…

      regex used : ’ (?-s)^.XXX.\R\K.+\R|\G.+ ’
      and ’ (?-is)^.XXX.\R\K.\R.\R ’

      18972055-2e2d-4e9e-814c-a022e13d3f63-image.png

      Alan Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        Alan Kilborn @Bahaa Eddin ツ last edited by

        @Bahaa-Eddin-ツ said in “Invalid regular expression” error after crossing line ~3000000:

        regex used : ’ (?-s)^.XXX.\R\K.+\R|\G.+ ’
        and ’ (?-is)^.XXX.\R\K.\R.\R ’

        Do you think you can fix the display of these so that readers don’t have to go thru mental gyrations to get to what you’re talking about?

        B 1 Reply Last reply Reply Quote 1
        • B
          Bahaa Eddin ツ @Alan Kilborn last edited by

          @Alan-Kilborn
          I think everything is clear :)
          Can you explain the thing you didn’t understand so I can edit the post

          PeterJones 1 Reply Last reply Reply Quote 0
          • guy038
            guy038 last edited by

            Hello, @Bahaa-Eddin-ツ, @alan-kilborn and All,

            @Bahaa-Eddin-ツ, I suppose that you’re speaking about this post : How to bookmark lines around a line containing a specific expression ‘XXX’ ?

            In this case, You should study, first, my last version, here on this topic !

            Best Regards,

            guy038

            1 Reply Last reply Reply Quote 1
            • PeterJones
              PeterJones @Bahaa Eddin ツ last edited by

              @Bahaa-Eddin-ツ said in “Invalid regular expression” error after crossing line ~3000000:

              Can you explain the thing you didn’t understand so I can edit the post

              His point was, because you didn’t use ` before and after your regex (to put it in a red typeface), the asterisk wildcards in your regex became italics in your post. It makes it very hard to know what regex you tried when you don’t even look at the “preview” or the post after you’ve hit SUBMIT, and notice that the regex that’s shown isn’t the regex that you tried.

              ----

              Useful References

              • Please Read Before Posting
              • Template for Search/Replace Questions
              • Formatting Forum Posts
              • Notepad++ Online User Manual: Searching/Regex
              • FAQ: Where to find other regular expressions (regex) documentation
              1 Reply Last reply Reply Quote 2
              • First post
                Last post
              Copyright © 2014 NodeBB Forums | Contributors