Fork me on GitHub
#instaparse
<
2021-02-10
>
mathpunk22:02:57

I'm writing my first grammar. It's going pretty well but, I've captured all the stuff I care about and now I have some extra junk I don't care about. How can I express something like, "S = word data junk", where I'm interested in part of the pattern and then afterward there is maybe some "whatever"?

aengelberg22:02:16

@mathpunk you might want the “hide” syntax (`<>`)?

aengelberg22:02:37

you could capture all the other junk with <#'[\s\S]*'>

mathpunk22:02:48

excellent, thank you!