"Invalid regular expression" error after crossing line ~3000000
-
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 ’ -
@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?
-
@Alan-Kilborn
I think everything is clear :)
Can you explain the thing you didn’t understand so I can edit the post -
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
-
@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