reading again the book since it’s complete and stumbled on
A regular expression
a*a
will match one or more lettersa
. However,a*a
in PEG will never match anything…
On page 44.
TIL! I assumed regex matched like PEG but turns out it’s not the case.
Is it due to backtracking in regexp? Where is this behaviour documented?
Thanks!