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:
|
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.