Page 1 of 1
8.1.2: Find in files: regex multiline never matches
Posted: Fri Jul 07, 2017 7:12 am
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?
Posted: Mon Apr 16, 2018 4:13 pm
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
Posted: Tue Apr 17, 2018 9:04 pm
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.
Posted: Sun Jul 26, 2020 11:36 pm
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?