-
What version of regex are you using?1.6.0 Describe the bug at a high level.my regex What are the steps to reproduce the behavior?
What is the actual behavior?
What is the expected behavior?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
fixed it with : sorry with the issue |
Beta Was this translation helpful? Give feedback.
-
Note that just because a regex is valid for some other regex engine does not mean it's a bug if it doesn't compile in this regex engine. Basically all regex engines have their own flavor despite generally being very similar. I would also recommend that you use raw strings. For example, they let you write Pretty much all of the examples in the docs use raw strings for this reason. It's even explicitly called out: https://docs.rs/regex/latest/regex/#example-find-a-date |
Beta Was this translation helpful? Give feedback.
fixed it with :
let regex = Regex::new("\"vault\":[\"]?(\\{.*?data.*?\\})").unwrap();
sorry with the issue