You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The good news is that the changes to the regex crate I talked about in #2471 have landed and you can now write a Rust program to search for multiple regexes simultaneously in a way that will tell you which matched. I should caution you though that it isn't magic and it can't scale to arbitrarily many regexes. But I have no plans to add this functionality to ripgrep at present.
Another technique is to use a crate like aho-corasick to do some part of the matching for you because it scales better.
Hey!
I have a lot of regex patterns I'd like to apply on a file, this leds to something like:
This works great returning a bunch of matches but in the match json there is no way to identify which regex pattern/s led to the match.
If there is a way to do this already could you let me know and I'll close this issue.
Thanks so much :)
The text was updated successfully, but these errors were encountered: