Ananiya
04/11/2021, 4:02 PMkt
val thisIsATest = "**bold** normal **even bold** normal2"
"\\*\\*([\\s\\S]+?)\\*\\*(?!\\*)".toRegex().replace(thisIsTest,".").let{
println(it)
}
Is there any way to print like
bash
.bold. normal .even bold. normal2
Instead of [the output from the above code]
. normal . normal2
nanodeath
04/11/2021, 4:09 PM".$1."
Ananiya
04/11/2021, 4:14 PM