How do I write a rule for
at least N chars - regex [a-z](2,}
at most N chars - regex [a-z](,5}
from N to M chars - regex [a-z]{3,10}
in Parboiled?
How do I write a rule for
at least N chars - regex [a-z](2,}
at most N chars - regex [a-z](,5}
from N to M chars - regex [a-z]{3,10}
in Parboiled?
Copyright © 2021 Jogjafile Inc.
You might be looking for the
timescombinator. You can either usetimeswith a singleInt(meaning repeat the rule exactlyntimes) or with an(Int, Int)(meaning repeat the rule betweennandmtimes). You can usetimestogether withoneOrMore,zeroOrMore,~, and!for the desired effects: