title: how to split a string that contains number in middle of words into string lisit and int lisit in java?
body: <p>I have the <code>String data=&quot;5999999-log(1000)*100/1000-cbrt(log(10000^2))&quot;</code>.I want to split the data String into int list <code>Int[] numbers = {5999999,1000,100,1000,10000,2}</code>so I can add commas separator to ever number in int list like <code>5,999,999</code> to every number in int list and I don't want the string like <code>String[] s = {&quot;-log(&quot;,&quot;)*&quot;,&quot;/&quot;,&quot;-cbrt(log(&quot;,&quot;^&quot;,&quot;))&quot;}</code> and the data string is editable where user can write the expression to solve so I can add commas in runtime to every numbergroup. is it possible? where I see in google calculator</p>