一、需求:把字符串按照给定拆分符(字符或字符串)拆分开:例如: a.字符拆分: a1: 1001,ziweiyi,abcd (末尾无拆分符) 按照' ,'拆分开成:1001 ziweiyi abcd a2: 1001,ziweiyi,abcd, (末尾有拆分符) 按照' ,'拆分开成:1001 ziweiyi abcd b.字符串拆分: b1: 1001brziweiyibrabcd (末尾无拆分符) 按照“br”拆分开成:1001 ziweiyi abcd b2: 1001brziweiyibrabcdbr (末尾有拆分符) 按照“ br”拆分开成:1001 Read More
posted @ 2013-04-06 20:11 子韦一 Views(848) Comments(0) Diggs(0) Edit