One-click digging is not often used, but it is very practical to overload-Split, very practical-split
Split is basically used by all program developers. Generally, a single character or long string is used to Split many strings. In fact, there is also a very useful overload, that is, multiple combinations of characters for splitting.
For example, "aaaaaaaaaa {@} bbbbbbbbbbbb {@} ccccccc # cccccc ";
Use the {@} character combination to split the array with a score of aaaaaaaaaa, bbbbbbbbbbbb, and ccccccc # cccccccc;
String SQL = "aaaaaaaaaa {} bbbbbbbbbbbb {} ccccccccc # cccccc "; // 1. Split a single combination of {@} string [] separator = new string [] {"{@}"}; // 2. Multiple combinations: {@}, # split string [] separator1 = new string [] {"{@}", "#"}; string [] arry = SQL. split (separator, StringSplitOptions. removeEmptyEntries );
Well, the Split character splitting is basically like this. There is no technical content. The key point is to dig it and it may be useful to you ~
I hope the above information will be helpful to beginners. Thank you!
More follow Fu Yi Fang technology blog: http://blog.csdn.net/fuyifang
Or scan the QR code on your mobile phone to view more blog posts: