我要用String.replaceAll来把字符串里面的“$name”全部替换成John,
正则表达式应该怎么写,为什么写成 反斜杠加美元符加name 通不过编译。