【发布时间】:2012-04-18 14:22:55
【问题描述】:
在我的 Android 应用程序中,我想更改双引号之间的字符串的值。比如我想把{"txt":换成{"":
我尝试了以下正则表达式,但它们不起作用...
String abc=replace(str, "{\\txt\\:", "");
String abc=replace(str, "{'txt':", "");...,etc
谁能提供帮助。
【问题讨论】:
-
您要将
{"txt"替换为""(包含引号的字符串)还是空字符串?
标签: java android regex replace