I have a string like this
BALANCE:"5048543747",BALDEFOVD:"5119341413",ACCTNO:"0001000918",
I've using REGEX
(.*?),
Result i've received just the first substring is
BALANCE:"5048543747"
in fact, the result which i want get is the array include
{
BALANCE:"5048543747"
BALDEFOVD:"5119341413"
ACCTNO:"0001000918"
}
Can anyone help me. Many thanks.
EDIT
Code i've using
Pattern pattern = Pattern.compile("(.*?),");
Matcher matcher =pattern.matcher("BALANCE:\"5048543747\",BALDEFOVD:\"5119341413\",ACCTNO:\"0001000918\",");
if (matcher.find())
{
System.out.println("found: " + matcher.group(1));
}
Result i'v received
BALANCE:"5048543747"
split(",")? - AJ.