I do have following string:
\"lengthSeconds\":\"2664\"
which I would like to match with this regexp:
Regex::new("lengthSeconds\\\":\\\"(\\d+)\\\"")
I even tried this:
Regex::new(r#"lengthSeconds\":\"(\d+)\""#)
but I'm getting this:
regex parse error:
lengthSeconds\":\"(\d+)\"
^^
error: unrecognized escape sequence
What's wrong with the regexp pattern?