String method | Description |
equalsIgnoreCase('str') | Returns a boolean value that indicates whether the result string is equal to the specified string, ignoring case. |
contains('str') | Returns a boolean value that indicates whether the result string contains the specified string. |
matches('regex') | Returns a boolean value that indicates whether the result string matches the specified Java regular expression. |
startsWith('str') | Returns a boolean value that indicates whether the result string starts with the specified string. |
endsWith('str') | Returns a boolean value that indicates whether the result string ends with the specified string. |
toLowerCase() | Converts the result string to lowercase and returns it. |
toUpperCase() | Converts the result string to uppercase and returns it. |
concat('str') | Appends the result string with the specified string and returns this result. |
replaceAll('regex','regexReplacement') | In the result string, for each substring that matches regex, this method replaces the matching substring with regexReplacement. The string with replacement values is returned. The regexReplacement string may contain backreferences to matched regular expression subsequences using the \ and $ characters, as described in the Oracle API documentation for java.util.regex.Matcher.replaceAll(). If a literal $ or \ character is required in regexReplacement be sure to escape it with a backslash, for example: "\$" or "\\". |
substring(startIndex,endIndex) | Returns a new string, which is a substring of the result string. The returned substring includes the character at startIndex and subsequent characters up to but not including the character at endIndex. |
substring(startIndex) | Returns a new string, which is a substring of the result string. The returned string includes the character at startIndex and subsequent characters including the last character in the string. |
trim() | Returns a copy of the result string with leading and trailing whitespace removed. |