grouped
inline fun grouped(groupStart: String, groupEnd: String, builder: RegexBuilder.() -> Unit): RegexBuilder(source)
Groups a segment of a regular expression, with the groupStart
and groupEnd
parameters marking the start and end of the group respectively.
The builder parameter is applied in the middle.
Return
The current RegexBuilderScope
instance
Parameters
groupStart
The opening characters of the group.
groupEnd
The closing characters of the group.
builder
Defines the group content in between the start and end.