Code:
use combine::parser::regex::{captures, Captures};
use combine::Parser;
use std::fs;
fn main() -> anyhow::Result<()> {
let comment = regex::Regex::new(r"%[^\n]*\n").unwrap();
let mut c: combine::parser::regex::Captures<_, regex::Regex, &str> = captures(comment);
let y = c.parse("hello world")?;
/*
println!("{:?}", y);
*/
Ok(())
}
I can not figure out what to fill in for the first type arg to regex::Captures.
I am using