A library which contains extra matchers for streamson-lib. Note that this library may contain additional dependencies.
Matches path based on regex.
```rust use streamsonlib::{handler, Collector}; use streamsonextra_matchers::Regex;
use std::{str::FromStr, sync::{Arc, Mutex}};
let handler = Arc::new(Mutex::new(handler::PrintLn::new())); let matcher = Regex::from_str(r#"{"[Uu]ser"}[]"#).unwrap();
let mut collector = Collector::new();
collector.add_matcher( Box::new(matcher), &[handler], );
for input in vec![ br#"{"Users": [1,2]"#.tovec(), br#", "users": [3, 4]}"#.tovec(), ] { collector.process(&input).unwrap(); } ```