william
val a = Regex("foo") a.replace("foobar", "\\w") res3: kotlin.String = wbar
\\wbar
\\
\
nkiesel
$
\\bwbar
Regex("foo").replace("foobar", "\\\\\\\\w")
Regex("foo").replace("foobar", """\\\\w""")
A modern programming language that makes developers happier.