maybe {Ramble} | R Documentation |
maybe
matches 0 or 1 of pattern p
. In EBNF notation, this
corresponds to a question mark ('?').
Description
maybe
matches 0 or 1 of pattern p
. In EBNF notation, this
corresponds to a question mark ('?').
Usage
maybe(p)
Arguments
p |
is the parser to be matched 0 or 1 times. |
See Also
Examples
maybe(Digit())("123abc")
maybe(Digit())("abc123")
[Package Ramble version 0.1.1 Index]