Quantcast
Channel: Active questions tagged string-manipulation - Mathematica Stack Exchange
Viewing all articles
Browse latest Browse all 186

Joining adjacent elements by rule

$
0
0

I have a list of strings:

lis = {"a","1","c","ef","g","2"}

and would like to join all adjacent non-numeric characters to produce:

res = {"a","1","cefg","2"}

Thanks for advice...


Viewing all articles
Browse latest Browse all 186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>