How to make ripgrep match multiple rules in one line or use longest match principle? #1644
-
Beta Was this translation helpful? Give feedback.
Answered by
BurntSushi
Jul 23, 2020
Replies: 2 comments 1 reply
-
The only way is to sort your rules file by the length of each rule in descending order. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
XhstormR
-
Thank you very much for your help! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The only way is to sort your rules file by the length of each rule in descending order.