regex
Constructs a Regex
instance by applying the provided builder
function within the context of a RegexBuilderScope
. This enables the creation of complex regular expressions in a more readable and maintainable way.
Return
The constructed Regex
instance.
Parameters
builder
A lambda function with RegexBuilderScope
as its receiver.