This week's book giveaway is in the Object Relational Mapping forum. We're giving away four copies of Pro JPA 2: Mastering the Java Persistence API and have Mike Keith and Merrick Schincariol on-line! See this thread for details.
"The set strikes me as something like the set of potatoes, radishes, farming, and lunch. " - a colleague's way of comparing both overlapping and disparate groups. made me laugh and thought of the ranch
split() internally creates Pattern.compile which is an expensive operation. so I would say, use split() in an efficient way. Or use Pattern.compile(regex).split(this, limit); directly.
I'm with Jeanne here - simply use split() until it is proven to be a bottleneck for you application.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus