14 lines
230 B
Kotlin
14 lines
230 B
Kotlin
package demo
|
|
|
|
class Test {
|
|
fun test() {
|
|
var name = "$$$$"
|
|
name = name.replaceAll("\\$[0-9]+", "\\$")
|
|
|
|
val c = '$'
|
|
System.out.println(c)
|
|
|
|
val C = '$'
|
|
System.out.println(C)
|
|
}
|
|
} |