I have a string list consisting of alternating sequences of letters and digit characters. I would like to join the letter sequences and convert the digit characters into numbers composing a sublist of integers:
lis = {"a","bc","0","14","2","d","e","f","3","wx","z","r","st"}
I would like to obtain:
res = {{"abc"},{0,14,2},{"def"},{3},{"wxzrst"}}
Moving back and forth from symbols, numbers and string representation of digits makes for many lines of what must be extraneous code. I would be grateful for (and curious to see) ideas for economic code for this.