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

Search & Replace Whole Word and Regex selections are not mutually exclusive #633

Closed
okrick opened this issue Dec 31, 2024 · 2 comments
Closed
Labels
wontfix This will not be worked on

Comments

@okrick
Copy link

okrick commented Dec 31, 2024

The Regex and Whole Word search options are currently incompatible in the current version. When both are selected, no matches are found.

In GG1, these options were mutually exclusive, meaning only one could be selected at a time.

@windymilla
Copy link
Collaborator

While it is true that in GG1 the two options are mutually exclusive, it is not true that in GG2 no matches are found with Regex & Whole Word both selected. What Whole Word does is to wrap the search string in \b...\b (or equivalent). It does this whether you do a normal search or a Regex search.

If you do a Regex & Whole Word search for d.g, it will match dig and dog, but won't match digger or bulldog.

@windymilla windymilla added the bug Something isn't working label Jan 1, 2025
@okrick
Copy link
Author

okrick commented Jan 1, 2025

Thanks for the explanation.

This can be closed.

@okrick okrick closed this as completed Jan 1, 2025
@windymilla windymilla added wontfix This will not be worked on and removed bug Something isn't working labels Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants