Kactoos

kactoos-jvm / nnl.rocks.kactoos.text / ReplacedText / <init>

<init>

ReplacedText(origin: Text, regex: KScalar<Pattern>, replacement: Func<Matcher, String>)

Parameters

origin - The text

regex - The regular expression

replacement - Transforms the resulting matcher object into a replacement string.ReplacedText(text: Text, find: String, replace: String)

Will replace all instances of the substring matched by find with replace.

Parameters

text - The text

find - The regular expression

replace - The replacement string