View Single Post
Old 06-23-2025, 07:19 PM   #5
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,864
Karma: 6120478
Join Date: Nov 2009
Device: many
Yes, this must be something the new pcre2 module changed.

I will look into it.

In the interim use:
.+

which will find all non-empty lines

Or Turn on the Minimal Match flag and the DotAll flag in Regex options then search for the following:

.*\n

it will return each line (empty or not) and its ending line feed.

Somehow pcre is not advancing its internal search position when the search string is ".*" because a zero length string is also a match for this case.

Very strange.

Last edited by KevinH; 06-23-2025 at 08:23 PM.
KevinH is offline   Reply With Quote