OptionalexpressionThe expression. If the expression is not provided, the option will work for all previous parameters, and when the expression is provided, the option will only work for the expression.
Optionalgroup(x)
If need to group the input, Default is false.
Optionalgroup(x)(y)
If need to group each items. Default is false.
Default: false, not group.
Optionalgroup(x)*
If need to group qualified item, work with qualifier. Default: true.
OptionalnameThe group name. work with group
Optionalnegated[^xy]
If it is a negated set. Default is false.
Optionalnot(?:x)
If need not to remember the group, work with group. Default is false.
Optionalnot(?:x)*
If need not to remember the group qualified item, work with qualifier. Default is false.
Optionalorx|y
If using or operations for items. Default is false.
Optionalqualifierqualifier: would be one of:
?: zero or one
+: one or more
*: zero or more
{n}: n times of occurrences
{n,}: n times or more of occurrences
{n,m}: n to m times of occurrences
Optionalset[xy]
If it is a set. Default is false.
RegExp Options
An options object is the trailing parameter of an expression, it works for the whole expression, or only for
expressionwhen it is provided.