Find the nth row instance in Notepad ++

I am trying to use Notepad ++ regular expression functionality to find every 99th instance of the string "ISA" in a text document. I tried using regex here , but I keep getting the following error: Error message

Any help would be greatly appreciated!

+4
source share
1 answer

You can enable .matching newline options or just use the built-in singleline / dotall modifier (?s):

(?s)(?:.*?ISA){98}

See settings with the result "Find everything in the current document" (with approximately 300 lines 1 ISA):

enter image description here

98- ISA, , USA, (?s)((?:.*?ISA){97}.*?)ISA $1USA .

+3

Source: https://habr.com/ru/post/1654654/


All Articles