Skip to content

Search to the last possible match of regexp in reverse search#45

Merged
marlon-sousa merged 1 commit intomasterfrom
feat/implement-search-by-regular-expressions
Jul 13, 2025
Merged

Search to the last possible match of regexp in reverse search#45
marlon-sousa merged 1 commit intomasterfrom
feat/implement-search-by-regular-expressions

Conversation

@thgcode
Copy link
Collaborator

@thgcode thgcode commented Jul 8, 2025

closes #42 .

This is an attempt to fix issue #42 by searching all possible matches of a regexp. When a match is found, it tries to search from the character following the match onto the start offset, to fix the greedy case described on the issue. This currently needs more testing to check if this solution works with more regular expressions, but for the described test case found on the issue it works, so I am marking in draft status for now.

@thgcode thgcode marked this pull request as ready for review July 9, 2025 09:03
@marlon-sousa marlon-sousa merged commit 6c2237c into master Jul 13, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

Reverse search working inconsistently in regexp mode

2 participants