kactoos-jvm / nnl.rocks.kactoos.text / ReplacedText / <init>
ReplacedText(origin: Text, regex: KScalar<Pattern>, replacement: Func<Matcher, String>)
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.
text - The text
find - The regular expression
replace - The replacement string