Looking over the LPeg docs I do not see a way to have alternatives(OR)
e.g., a | b will match a or b. Am I missing something?
closed as off topic by topskip, Paulo Cereda, egreg, lockstep, percusse Mar 18 '12 at 20:38
Questions on TeX - LaTeX Stack Exchange are expected to relate to TeX, LaTeX or related typesetting systems within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.
From the documentation you linked to, we can read that
Something like the following should work (but I'm no LuaTeX expert).