how to split the String using comma,but with out any in {...}'s commas
<pre><code>String filterPath="aa.bb.cc{k1:v1,k2:{s1:s2}},bb.cc,ee.dd";

String[] result=filterPath.split(",");
for(String r:result){
    System.out.println(r);
}
</code></pre>

<p>I want split the String <code>filterPath</code> ,but with out any in { ... }'s commas:</p>

<pre><code>aa.bb.cc{k1:v1,k2:{s1:s2}}
bb.cc
ee.dd
</code></pre>

<p>thanks for help.</p>
