You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use nom::bytes::complete::tag;use nom::sequence::delimited;use parse_hyperlinks::take_until_unbalanced;letmut parser = delimited(tag("<"),take_until_unbalanced('<','>'),tag(">"));assert_eq!(parser("<<inside>inside>abc"),Ok(("abc","<inside>inside")));
I think the use case is so general, that you might want to integrate it into Nom. I implemented the code for &str, but as it only uses find, it should be easy to generalize. You can find my implementation here.
lucab, max-sixty, anthonyreinettesonos, Dummyc0m, logistic-bot and 8 moremiguelsilva5989, datwaft, dmyyy, andresovela, Mcdostone and 1 more