[−][src]Macro gstuff::take_until_parse_s
Implements the /(?x) (.*?) (remainder)/
pattern:
looks for remainder first, then returns a tuple with the prefix and the remainder.
Discussion: https://www.reddit.com/r/rust/comments/4yokxd/crash_course_into_nom_kind_of_question/
Example iterating over an input
:
let mut pos = input; while let IResult::Done (tail, (_head, _parsed_remainder)) = take_until_parse_s! (pos, tag! ("remainder")) { pos = tail }