Splitting the string using regular expression or string split
显示 更早的评论
'a_bb_ccc_ddd_eeeeee_ffff_gg_h_i'
I have a string like this.
I need to split the string as
a_bb_ccc
ddd_eeeeeee
ffff_gg_h_i
how to use the regular expression or stringsplit in order to get the above output?
3 个评论
Michael Haderlein
2015-5-5
Could you please explain why the splitting points are where they are? It seems to be some of the underscores, but how to decide which ones?
Gopalakrishnan venkatesan
2015-5-5
Gopalakrishnan venkatesan
2015-5-5
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!