Skip to content

Will look-around be supported one day? #910

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

You must be logged in to vote

To the degree I can be certain about anything, I'd say no, general look-around will never be supported. From the first paragraph of the crate docs (emphasis mine):

This crate provides a library for parsing, compiling, and executing regular expressions. Its syntax is similar to Perl-style regular expressions, but lacks a few features like look around and backreferences. In exchange, all searches execute in linear time with respect to the size of the regular expression and search text.

See also: #855, #853, #716, #666, #618

And from RE2, the regex crate's ancesor: google/re2#156, google/re2#365, google/re2#269

The wording above isn't quite precisely correct, but the general idea is that i…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@blyxyas
Comment options

@BurntSushi
Comment options

Answer selected by frederikhors
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