SPLIT函数,能不能选择两种以上的分割字符作为分割一个字符串的依据字符?怎么同时分割两种字符呢?
1条回答 默认 最新
- threenewbee 2016-07-23 06:33关注
vb.net可以
dim splitter as string = ",;"
dim s as string = "123,123,123;123;123"
dim result = s.split(splitter.toarray().select(function(x) x.tostring()), stringsplitoptions.removeempty)本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报