8.1.2: Find in files: regex multiline never matches

General questions about using TextPad

Moderators: AmigoJack, helios, bbadmin, Bob Hansen, MudGuard

Post Reply
melvers
Posts: 26
Joined: Tue Aug 05, 2003 1:52 pm

8.1.2: Find in files: regex multiline never matches

Post 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.
ben_josephs
Posts: 2456
Joined: Sun Mar 02, 2003 9:22 pm

Post 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.
User avatar
AmigoJack
Posts: 484
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Post 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).
Post Reply