Match A String Until A Case Insensitive Tag With nom In Rust
See the second one if you want to keep the text
Code
//! ```cargo
//! [dependencies]
//! nom = "7.1.3"
//! ```
use IResult;
use many_till;
use anychar;
use tag_no_case;
Results
"the quick"
This is aimed at keeping the ending part
Code
//! ```cargo
//! [dependencies]
//! nom = "7.1.3"
//! ```
use IResult;
use many_till;
use anychar;
// use nom::bytes::complete::tag_no_case;
// use nom::sequence::pair;
// use nom::bytes::complete::take_until;
use tag;
use peek;
Results
[_active_nvim_run:18] result.unwrap() = (
" brown fox",
"the quick",
)