(Go: >> BACK << -|- >> HOME <<)

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: 2 comments 4 replies

Comment options

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

Answer selected by yangwentong
Comment options

You must be logged in to vote
3 replies
@BurntSushi
Comment options

@masklinn
Comment options

@BurntSushi
Comment options

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