It's easy to use nom to parse a string until a character is found. How to use nom to gobble a string until a delimiter or the end? deals with this.
How do I do the same with a string (multiple characters) instead of a single delimiter?
For example, to parse abchello
, I want to parse everything until hello
is found.
parser("abch123");
givesOk(("h123", "abc"))
– Pushup