overlapping longest matches #1325
|
Using the dense dfa. Patterns:
Input:
Expected output:
My goal is to get all overlapping matches between patterns, but if from the same pattern then matches should report the longest match. I'm currently using the method described here but this gets all overlapping matches including the shorter matches. Here's the fwd results: Is there a better way of going about this? Other than:
|
Answered by
BurntSushi
Jan 24, 2026
Replies: 1 comment
|
No, this isn't supported. This crate doesn't even support non-overlapping leftmost-longest. The aho-corasick crate supports non-overlapping leftmost-longest, but not overlapping. |
0 replies
Answer selected by
BurntSushi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, this isn't supported. This crate doesn't even support non-overlapping leftmost-longest. The aho-corasick crate supports non-overlapping leftmost-longest, but not overlapping.