Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG replacing text as "Text Search" #476

Closed
Softproman opened this issue May 23, 2024 · 3 comments
Closed

BUG replacing text as "Text Search" #476

Softproman opened this issue May 23, 2024 · 3 comments

Comments

@Softproman
Copy link

Softproman commented May 23, 2024

I have the file "FileWithTextToBeReplaced.txt" with content: <DCC_BplOutput>..\Lib\RAD11\$(Platform)\</DCC_BplOutput>
image

I wish replace the word "RAD11" by "RAD12" with GrepWin. I configure as...:
image

I press "Replace" and the content of "FileWithTextToBeReplaced.txt" is: <DCC_BplOutput>..ibrad12\$(platform)</dcc_bploutput>
image

The replacement is wrong.

@TheCartpenter
Copy link

Looks like a malformed regex search pattern. I used the regex search option instead of the text search option and I searched for:

<DCC_BplOutput>..\\Lib\\(RAD11\\)\$\(Platform\)</DCC_BplOutput>

I replaced it with:

<DCC_BplOutput>..\\Lib\\RAD12\$\(Platform\)</DCC_BplOutput>

Works just fine.

@stefankueng
Copy link
Owner

works fine with the latest dev version:
https://github.com/stefankueng/grepWin/actions/runs/9155897409

@Softproman
Copy link
Author

GitHub ate a character at the beginning of the post (ScreenShot and image not match. I have solved it). My intention was to search for plain text, not regular expressions. In any case, I have tested it with the latest development version that you have attached and the search works correctly. With the latest official version (2.0.15) the problem is reproduced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants