This sample data is returned by the web service.
200.6 California, USA
I want to split them using split(",") and tried to see the result with simple code.
String loc = "200,6,\"California, USA\""; String[] s = loc.split(","); for(String f : s) System.out.println(f);
Unfortunately, this is the result.
200 6 "California USA"
Expected result should be
200 6 "California, USA"
I tried different regular expressions and no luck. Is it possible to avoid this regular expression inside "" ?
UPDATE 1 : Added C # Code
UPDATE 2 : C # Remote Code
user948620
source share