Sorry, yet another regex question! I have a string of unknown length that contains the following pattern:
"abc1defg2hijk23lmn19"
I need to split the string to get the following:
["abc1", "DefG2", "hiJk23", "lmn19"]
Its pretty simple I just need to split after the number each time. The number can be any non zero number.
I can do a positive lookup like this:
a.split("(?=\\d+)");
However, that actually splits out the number rather than the group of letter in front and the number.
My current attempt looks like this but doesn't work:
a.split("(?=[A-Za-z]+\\d+)");