8.1.2: Find in files: regex multiline never matches

General questions about using TextPad

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

Post Reply
User avatar
AmigoJack
Posts: 531
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

8.1.2: Find in files: regex multiline never matches

Post by AmigoJack »

Based on https://forums.textpad.com/viewtopic.php?t=13104 I just learned searching multiple lines using regular expressions in multiple files will never bring up a result. Has this worked in previous versions?
User avatar
Mike Olds
Posts: 226
Joined: Wed Sep 30, 2009 3:27 pm
Contact:

Post by Mike Olds »

Hello,

Using TP 8.1.2 I am able to search and replace across multiple files with multiple lines in TextPad using:

Search
<span class="mozp">([\s\S]*)</span>
Replace
\1

What I have not been able to do with this is to use it in Wild Edit
Thank you, and
Best Wishes,
Obo
http://buddhadust.net/
check out the What's New? Oblog:
http://buddhadust.net/dhammatalk/dhamma ... ts.new.htm
User avatar
AmigoJack
Posts: 531
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Post by AmigoJack »

Mike Olds wrote:replace across multiple files
Such a thing does not exist. I'm fine with "Find" and "Replace", also for all open documents.

I was talking about "Find In Files", where a search query like span>\n<span or span>\r<span just never matches. And I also don't want to find any space, I want to only find linebreaks.
User avatar
AmigoJack
Posts: 531
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Post by AmigoJack »

This is still not possible and I have neither a clue how I could be misunderstood, nor why this won't be fixed:
  • CTRL+F5 = find in files (not just finding in opened files)
  • regular expression
  • Find: text\ntext
  • no results found, although several files with those two lines exists
Where's the bug?
  • the regexp text\n however finds matches
  • but text\n. never finds anything, although it obviously should, since the dot matches anything
  • not even text\R. as per help for ANY linebreak matches any file
What am I doing wrong? How can I find all files that have duplicate lines (as in ^(.+)$\n\1)? That is no problem with an open file and using F5 = search, but not using CTRL+F5 = search in files. Why is there a difference?
Post Reply