RegexBuilder

class RegexBuilder(baseRegex: String)

A builder for Regex patterns.

Parameters

baseRegex

initial pattern

Constructors

Link copied to clipboard
constructor(baseRegex: String)

Functions

Link copied to clipboard
fun build(): Regex
fun build(vararg options: RegexOption): Regex
fun build(option: RegexOption): Regex
Link copied to clipboard

Adds a reference to the pattern. All the occurrences will be replaced.