regex - Removing double quotes and delimiter from a string in Java -
i have string "abc", "def". how can remove double quotes , comma single regular expression.
thanks helping out.
tokenize string ,
delimiter with
string yourstring = "\"abc\",\"def\""; string[] data = yourstring.split(",");
and remove quotes substring
for(string s: data){ string somestring = s.substring(1, s.length()-1); }
Comments
Post a Comment