Will look-around
be supported one day?
#910
-
I'm trying to use this regex but I get an error from clippy: Regex::new(r"^[ \t]+|[ \t]+$|[ \t]+(?=[ \t])/mg").unwrap()
Why? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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):
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 it isn't known how to implement arbitrary look-around in an efficient manner. The regex crate does support some very limited look-around in the form of |
Beta Was this translation helpful? Give feedback.
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):
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…