Page 1 of 1

8.1.2: Find in files: regex multiline never matches

Posted: Tue May 21, 2019 2:24 pm
by melvers
Is there a way to do a multi-line find using the find-in-files feature? I have tried a number of find expressions and nothing works. Some examples of find text are:

some text\n more text
some text[^m]+
some text\n *more

All of these work within a single file, but not in the find-in-files dialog.

Posted: Tue May 21, 2019 4:32 pm
by ben_josephs
TextPad is unable to match anything after a newline in a regex Find in Files search.
    some text\n
works, but
    some text\n more text
doesn't.

Posted: Thu Jun 06, 2019 7:23 am
by AmigoJack
I was addressing this in 8.1.2: Find in files: regex multiline never matches already, but without a useful reply.

Is there a reason why you edited your old post to look entirely the same?

I hope this limitation will be lifted in a future release, since matching multiple lines in a file find is needed every now and then (i.e. to exclude too many false positives).