Last chance! 50% off unlimited learning
Sale ends in
maybe
matches 0 or 1 of pattern p
. In EBNF notation, this
corresponds to a question mark ('?').maybe
matches 0 or 1 of pattern p
. In EBNF notation, this
corresponds to a question mark ('?').
maybe(p)
many
, some
maybe(Digit())("123abc")
maybe(Digit())("abc123")
Run the code above in your browser using DataLab