Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下文字
“这个球不是你的,这个是约翰的?”
我想纠正这个
“这个球不是你的,这个是约翰的”
如何在 Java 中使用 Pattern 和 Matcher 做到这一点?
string.replaceall
String fixed = old.replaceAll("\\?([ts])", "'$1");
这是一个例子