Skip to content

In Rust regex, is there a similar function to filtered_re.h in RE2 #923

Answered by BurntSushi
yangwentong asked this question in Q&A
Discussion options

You must be logged in to vote

No. You can use the regex-syntax to look at the HIR and extract substrings yourself though if you want. And the regex crate does that internally and tries to do at least part of the filtered_re.h optimization on its own, automatically.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yangwentong
Comment options

Answer selected by yangwentong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants