String manipulation and query functions.
concat( s1, s2 )
s1+s2, but blank values can sometimes appear as
the string "null" if you do it like that.
s1 (String): first strings2 (String): second stringconcat( s1, s2, s3 )
s1+s2+s3, but blank values can sometimes appear as
the string "null" if you do it like that.
s1 (String): first strings2 (String): second strings3 (String): third stringconcat( s1, s2, s3, s4 )
s1+s2+s3+s4,
but blank values can sometimes appear as
the string "null" if you do it like that.
s1 (String): first strings2 (String): second strings3 (String): third strings4 (String): fourth stringequals( s1, s2 )
s1==s2,
which can (for technical reasons) return false even if the
strings are the same.
s1 (String): first strings2 (String): second stringequalsIgnoreCase( s1, s2 )
s1 (String): first strings2 (String): second stringstartsWith( whole, start )
whole (String): the string to teststart (String): the sequence that may appear at the start of
whole
endsWith( whole, end )
whole (String): the string to testend (String): the sequence that may appear at the end of
whole
contains( whole, sub )
whole (String): the string to testsub (String): the sequence that may appear within whole
length( str )
str (String): stringmatches( str, regex )
str (String): string to testregex (String): regular expression stringmatchGroup( str, regex )
str (String): string to match againstregex (String): regular expression containing a grouped sectionreplaceFirst( str, regex, replacement )
str (String): string to manipulateregex (String): regular expression to match in str
replacement (String): replacement stringreplaceAll( str, regex, replacement )
str (String): string to manipulateregex (String): regular expression to match in str
replacement (String): replacement stringsubstring( str, startIndex )
str (String): the input stringstartIndex (integer): the beginning index, inclusivesubstring( str, startIndex, endIndex )
startIndex
and continues to the character at index endIndex-1
Thus the length of the substring is endIndex-startIndex.
str (String): the input stringstartIndex (integer): the beginning index, inclusiveendIndex (integer): the end index, inclusivetoUpperCase( str )
str (String): input stringtoLowerCase( str )
str (String): input stringtrim( str )
str (String): input stringpadWithZeros( value, ndigit )
value (long integer): numeric value to padndigit (integer): the number of digits in the resulting string