我有一些像这样的字符串:
"this is a string like #{aa} and#{bb}. "
"#{cc}this is another str#{dd}ing..."
我想像这样更改这些字符串:
"this is a string like ? and?." "aa" "bb"
"?this is another str?ing..." "cc" "dd"
我尝试使用正则表达式来分割这些字符串,但失败了。
我应该做什么?
最佳答案
关于java - 如何在 Java 或 Clojure 中用正则表达式替换字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29154079/