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

Selection in "Replace" by regular expression doesn't work with \n #1556

Closed
www1800 opened this issue Nov 3, 2022 · 2 comments
Closed

Selection in "Replace" by regular expression doesn't work with \n #1556

www1800 opened this issue Nov 3, 2022 · 2 comments
Milestone

Comments

@www1800
Copy link

www1800 commented Nov 3, 2022

Hi,

Let's say we have the below four lines:

1
2
3
4

Ctrl+A to select all, and Ctrl+H to do a replacement as follows:
image

Find (\w+) and replace with \1\n
click "Match case" and "Regular expression"
Replace in "Selection" then "Replace All"

image

It becomes

1

2

3
4

Last two are missing to be replaced.
P.S. Replace in "Whole file" works fine.
Thanks.

@www1800
Copy link
Author

www1800 commented Nov 3, 2022

Version: 2.16.24-x64 on Win11

@sdottaka
Copy link
Member

sdottaka commented Nov 5, 2022

Fixed in commit 7532ea4
Thank you for the report.

@sdottaka sdottaka closed this as completed Nov 5, 2022
@sdottaka sdottaka added this to the v2.16.25 milestone Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants