mardi 7 avril 2015

In Java, how to split strings without using delimiters in brackets?


Vote count:

0




I want to split a string by comma, but I want the comma between the brackets are ignored.


For example:


Input: a1:b1, a2:b2, [a3:b3-c3, b4, b5], a4:b6


Output: a1:b1 a2:b2 [a3:b3-c3, b4, b5] a4:b6


Thank you for your help in advance.



asked 1 min ago







In Java, how to split strings without using delimiters in brackets?

Aucun commentaire:

Enregistrer un commentaire