About: FastStringUtils is an easy-to-use zero dependency collection of very fast String utility functions for Java.
License: MIT License
Source: https://konloch.com/FastStringUtils/
Download Jar: https://konloch.com/FastStringUtils/releases/
Add as maven dependency:
Splitting a String with a supplied separator
License: MIT License
Source: https://konloch.com/FastStringUtils/
Download Jar: https://konloch.com/FastStringUtils/releases/
Add as maven dependency:
Code:
<dependency>
<groupId>com.konloch</groupId>
<artifactId>FastStringUtils</artifactId>
<version>1.0.0</version>
</dependency>
Splitting a String with a supplied separator
Code:
//split the string using the space character as a separator
String[] simpleSplitExample = FastStringUtils.split("Split Example", " ");
//split the string using the space character as a separator, with a maximum search limit of 2
String[] limiterSplitExample = FastStringUtils.split("Split Example With A Limit ", " ", 2);
//split the string using the space character as a separator, with a maximum search limit of 2, and preserve the separator
String[] limiterSplitExamplePreseveSeparator = FastStringUtils.split("Split Example With A Limit ", " ", 2, true);