We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@dmajda
gammar
// from RFC 2396 domainlabel = 'a' / ('a' ('a' / '-')* 'a')
input
aa
can't parse, why?
The text was updated successfully, but these errors were encountered:
The rule ('a' / '-')* will try to match the longest string possible, so it will match 'aa' leaving no chars.
('a' / '-')*
RFC 2396 domainlabel rule can be rewritten as
domainlabel = $([a-zA-Z] [a-zA-Z0-9]* ('-'+ [a-zA-Z0-9]+)*)
Also, take a look at Parsing Expression Types to check the rules PEG.js supports.
Sorry, something went wrong.
thanks
No branches or pull requests
@dmajda
gammar
input
can't parse, why?
The text was updated successfully, but these errors were encountered: