regex_syntax::Parser.parse and regex::Regex.build alignment? #937
Answered
by
BurntSushi
Guillermogsjc
asked this question in
Q&A
-
Hi, is it supposed that My tries tell me that this assumption is correct, but do not know if it is and will be a criteria in this repository and it will be aligned in the future. Regards |
Beta Was this translation helpful? Give feedback.
Answered by
BurntSushi
Dec 18, 2022
Replies: 1 comment 2 replies
-
Sorry, it is very difficult to understand your question. I think what you're asking is whether Regex::new can fail due to anything except a parse error. Indeed it can! It can fail if the regex exceeds the configured RegexBuilder::size_limit. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
BurntSushi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry, it is very difficult to understand your question.
I think what you're asking is whether Regex::new can fail due to anything except a parse error. Indeed it can! It can fail if the regex exceeds the configured RegexBuilder::size_limit.