stefankueng / grepWin

A powerful and fast search tool using regular expressions
https://tools.stefankueng.com/grepWin.html
GNU General Public License v3.0
1.74k stars 180 forks source link

Search 'n Replace with Text: issue with "\" backslash in replace text #431

Closed ToniMa1 closed 10 months ago

ToniMa1 commented 10 months ago

Searching in text mode works well, but when it comes to replace it doesnt escape the "\" char. seems they are used as regex in replace mode. (version 2.0.15.1232)

Example:

Search: C:\temp\search Replace: C:\temp\errors

File content before: C:\Temp\search\text1.txt Result in file: C:\temprrors\text1.txt

ToniMa1 commented 10 months ago

Workaround:

Double the "\" backslash in replace will help, but unhandy.

stefankueng commented 10 months ago

That's by design. Otherwise you couldn't replace something with e.g. a newline.

ToniMa1 commented 10 months ago

Hi stefan,Eine frage: auch by design bei text suche?? Bei regexmodus wärs mir klar, aber text sollte doch nicht interpretiert werden, oder? Lg martin Von meinem iPhone gesendetAm 27.10.2023 um 22:17 schrieb Stefan Küng @.***>: Closed #431 as completed.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

stefankueng commented 10 months ago

Not when searching, no.