Split this basically all the program developers use, generally use single character and long string to split the string of more, in fact, there is an overload is very useful, that is, a variety of composite characters to split.
For example: "AAAAAAAAAA{@}BBBBBBBBBB{@}CCCCCCC#CCCCCC";
The AAAAAAAAAA, BBBBBBBBBB, and CCCCCCC#CCCCCC arrays are split by the {@} combination character;
string"aaaaaaaaaa{@}bbbbbbbbbb{@}ccccccc#cccccc";//1、单组合{@}拆分stringnewstring"{@}" };//2、多组合{@}、#拆分 stringnewstring"{@}""#" };string[] arry = sql.Split(separator, StringSplitOptions.RemoveEmptyEntries);
Well, split combination character split in general, no technical content, the focus is to dig a dig, perhaps useful to you ~
Hope that the above share of the beginner friends some help, thank you!
More Attention Fuyi Technology blog: Http://blog.csdn.net/fuyifang
or scan the QR code directly with your phone to see more Posts:
Dig a less common and useful overload-split