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

Why is StringSplit dropping empty entries? [closed]

$
0
0

I am parsing a CSV and whenever the trailing records are empty:

StringSplit[",2,,4,,",","]

I get:

{"2", "", "4"}

But I was expecting:

{"", "2", "", "4", "", ""}

Is there an option for StringSplit to do that?


Viewing all articles
Browse latest Browse all 186

Trending Articles



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