-
Notifications
You must be signed in to change notification settings - Fork 12
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
Regexp matches not greedy enough #28
Comments
This is because phi-search searches backwards to get all matches. Lines 191 to 196 in 5b8ddad
Line 208 in 5b8ddad
I don't remember why, but it is fixable, I suppose. |
Fixed phi-search to perform forward-search. Thanks for the report. |
Cool! 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I use
phi-search
to run this regexpon the example text below, the matches are not what I expect.
Specifically, instead of matching
local-key-binding
it just matcheskey-binding
at the end, and instead of matchingminor-mode-key-binding
it just matcheskey-binding
at the end. If I modify the regexp to bethen it matches
local-key-binding
but instead of matchingminor-mode-key-binding
it just matchesmode-key-binding
at the end.It seems that in this part of the regexp,
phi-search
is not doing greedy matching. Note that I have tested this regexp withisearch-regexp
and I get the greedy match that I am expecting. In other words,phi-search
is somehow coming up with different matches thanisearch-regexp
.The text was updated successfully, but these errors were encountered: