I wanted to to Remove ( " ) Character from String
我想从字符串中删除(")字符
This is my text
这是我的文本
"69452;6486699"
“69452、6486699”
I need to Have This Text
我需要这段文字
69452;6486699
69452,6486699
I've tryed to use String.Replace
我想用字符串替换
text = text.replace(""","");
and does not work
,不工作
Also I've Use This Way
我也用过这种方法
text = text.replace("/"","");
But Not Again
但又不
Any One Can Help me ?!
有人能帮我吗?!
4 个解决方案
#1
13
use this code
使用这个代码
text.replace("\"", "");
Backslash () is used for escaping special characters, forward slash (/) is just a regular character with no special meaning in the string.
反斜杠()用于转义特殊字符,正斜杠(/)只是一个普通字符,在字符串中没有特殊含义。
#2
5
Wrong slash. Do it with a backslash:
错误的削减。用反斜线:
text = text.replace("\"", "");
#3
3
It's
这是
text = text.replace("\"", "");
Backslash (\
) is used for escaping special characters, forward slash (/
) is just a regular character with no special meaning.
反斜杠(\)用于转义特殊字符,正斜杠(/)只是一个没有特殊含义的普通字符。
#4
2
You need to try like this
你需要这样尝试
text = text.replace("\"", "");
Look into String.replace()
看着. replace()
#1
13
use this code
使用这个代码
text.replace("\"", "");
Backslash () is used for escaping special characters, forward slash (/) is just a regular character with no special meaning in the string.
反斜杠()用于转义特殊字符,正斜杠(/)只是一个普通字符,在字符串中没有特殊含义。
#2
5
Wrong slash. Do it with a backslash:
错误的削减。用反斜线:
text = text.replace("\"", "");
#3
3
It's
这是
text = text.replace("\"", "");
Backslash (\
) is used for escaping special characters, forward slash (/
) is just a regular character with no special meaning.
反斜杠(\)用于转义特殊字符,正斜杠(/)只是一个没有特殊含义的普通字符。
#4
2
You need to try like this
你需要这样尝试
text = text.replace("\"", "");
Look into String.replace()
看着. replace()