regex - Java split "a"."b"."c" using regular expression -


i have string: "a.aa"."bb.b"."ccc." , need split values:

a.aa
bb.b
ccc.

how can that?

i have tried with:

string str = "\"a.aa\".\"bb.b\".\"ccc.\""; system.out.println(java.util.arrays.tostring(st‌​r.split("[\"\"]"))); 

but gives response:

[, a.aa, ., bb.b, ., ccc.] 

and expect response this

[a.aa, bb.b, ccc.] 

do need like:

string str =  "\"a.aa\".\"bb.b\".\"ccc.\"";  string[] strsplited = str.substring(1,str.length() - 1).split("\".\""); 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -