[−][src]Macro gstuff::parse_replace_s
Uses nom to find all matches of the given $submac
parser and replace them with the $submac
results.
For exaple, replacing "foo" with "bar" might look like this:
use nom::{self, IResult}; let bar_bar = parse_replace_s! ("foo bar", map! (tag_s! ("foo"), |_| "bar"));