Android 如何从字符串中删除 ( " ) 个字符
Android How to Remove( " )Character from String
我想从字符串中删除 (") 个字符
这是我的文字
"69452;6486699"
我需要这个文本
69452;6486699
我试过使用String.Replace
text = text.replace(""","");
并且不起作用
我也是这么用的
text = text.replace("/"","");
但不会再发生
谁能帮帮我?!
错误的斜杠。用反斜杠做:
text = text.replace("\"", "");
你需要这样尝试
text = text.replace("\"", "");
是
text = text.replace("\"", "");
反斜杠(\
)用于转义特殊字符,正斜杠(/
)只是一个普通字符,没有特殊意义。
使用此代码
text.replace("\"", "");
反斜杠()用于转义特殊字符,正斜杠(/)只是普通字符,在字符串中没有特殊意义
我想从字符串中删除 (") 个字符
这是我的文字
"69452;6486699"
我需要这个文本
69452;6486699
我试过使用String.Replace
text = text.replace(""","");
并且不起作用
我也是这么用的
text = text.replace("/"","");
但不会再发生
谁能帮帮我?!
错误的斜杠。用反斜杠做:
text = text.replace("\"", "");
你需要这样尝试
text = text.replace("\"", "");
是
text = text.replace("\"", "");
反斜杠(\
)用于转义特殊字符,正斜杠(/
)只是一个普通字符,没有特殊意义。
使用此代码
text.replace("\"", "");
反斜杠()用于转义特殊字符,正斜杠(/)只是普通字符,在字符串中没有特殊意义