Shrinking a String to substrings : <p>I am new to android and working on a project, and in a part of that I need to shrink a string to smaller substrings.</p>

<p>For example let's assume the string is "A-87B9C143D24E940|jOmbFACBBAAAAADB2" and length of this string is not fixed.
The thing I want is that put characters from A to B to a string variable (like S0 = 87), from B to C to another one (like S1 = 9) from D to E to another one (like S3 = 143) from E to | to another one (like S4 = 940) and everything after | goes to another substring (like S5 = jOmbFACBBAAAAADB2);</p>
