

If the # of lines between one match and the next match is large, i.e.Each "find next" should find and select the entire text of the next record that contains the string.

It should match from the opening "" through the closing "" tag for each such record.

The regex should match the entire text between (and including) the opening/closing record tags for only those records that contain "text-string-to-find". The negative lookahead ensures that we don't return matches that span multiple records when doing a Find Next from the current cursor position in the file. The regex above is trying to match records that contain "text-string-to-find".Search the records file using the regex above, and hit Find Next repeatedly to traverse the matches.Some of these records contain a particular "text-string-to-find", others do not. 10-50 lines per record) defined between opening/closing / tags. To illustrate, consider a long XML file with hundreds or thousands of multi-line "records" (e.g.When it exceeds that limit, notepad++ selects the entire file. ~1000 lines:īasically, there seems to be a limit or constraint in how far ahead notepad++ can traverse when searching with a regex that includes a lookahead. Notepad++ erroneously selects the entire file when searching using a regex that includes a lookahead that scans over 1000+ lines to determine a match.įor example, the following regex will select the entire file when the amount of text traversed in order to find the next successful match exceeds approx.
