I've been looking through pages and pages of Google results but haven't come across anything that could help me.
What I'm trying to do is split a string like Bananas22Apples496Pears3
, and break it down into some kind of readable format. Since String.split()
cannot do this, I was wondering if anyone could point me to a regex snippet that could accomplish this.
Expanding a bit: the above string would be split into (String[]
for simplicity's sake):
{"Bananas:22", "Apples:496", "Pears:3"}