Package com.jbstrap.core.utils
Class StringUtils
java.lang.Object
com.jbstrap.core.utils.StringUtils
Class containing methods that makes handling String values easier.
- Since:
- 4.0
- Author:
- JBStrap
-
Method Summary
-
Method Details
-
subString
Gets a sub String from the specified source, using the specified pattern.- Parameters:
source
- The source StringregexpPattern
- The regexp pattern- Returns:
- The first result that matches the pattern, or
null
, if none are found
-
getToken
Gets a token, according to the specified parameters.- Parameters:
source
- The source Stringdelimiter
- The delimiter character, used to separate.index
- The index of the desired string. If specified asnull
the method will return with the first value.- Returns:
- The value, corresponding to the specified index, or
null
, if not found
-