alireza amini alireza amini - 4 months ago 16
Android Question

Android How to Remove( " )Character from String

I wanted to to Remove ( " ) Character from String

This is my text


"69452;6486699"


I need to Have This Text


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 ?!

Answer

Wrong slash. Do it with a backslash:

text = text.replace("\"", "");