option
Adds an OptionalElement (matches 0 or 1 times).
This is equivalent to repeat(min = 0, max = 1, pattern).
Return
this RuleBuilder for chaining
Parameters
pattern
A lambda defining the optional element(s)
Adds an OptionalElement (matches 0 or 1 times).
This is equivalent to repeat(min = 0, max = 1, pattern).
this RuleBuilder for chaining
A lambda defining the optional element(s)