Module : stringutils
Module overview
This module provides utility functions to manipulate the built-in string
data type.
contains | Checks whether the given string contains a particular substring. |
equalsIgnoreCase | Checks if two strings are equal ignoring the case of the strings. |
hashCode | Returns a hash code for a given string. |
lastIndexOf | Returns the last index of the provided substring within a string. |
matches | Checks whether the given string matches the provided regex. |
replace |
Replaces each occurrence of the provided substring inside the provided
originalString with the specified replacement string.
|
replaceAll | Replaces each occurrence of the substrings, which matches the provided regular expression from the given original string value with the provided replacement string. |
replaceFirst |
Replaces the first substring that matches the given regular expression with
the provided replacement string.
|
split | Returns an array of strings by splitting a string using the provided delimiter. |
toBoolean | Returns a boolean value of a given string. |