Closed
Description
What version of regex are you using?
1.4.3
Describe the bug at a high level.
When used in large quantities, the memory will continue to grow
What are the steps to reproduce the behavior?
use regex::bytes::Regex;
fn main() {
loop {
let input = "NGS>";
let reg = Regex::new(r#"(?m)(\x1b|\[[0-9;]*[a-zA-Z])"#).unwrap();
let _ = reg.replace_all(input.as_bytes(), "".as_bytes());
}
}
What is the actual behavior?
After running for 10 minutes, the memory consumption increased to 1GB.
Metadata
Metadata
Assignees
Labels
No labels