servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientsWordListMobileClientservoy sSummary12%30%58%height: 30px;3Property SummaryGives the length of the string.servoy sSummary12%30%58%height: 30px;3Methods Summaryreturns a copy of the string embedded within an anchor
Determines whether a string ends with the characters of a specified string, returning true or false as appropriate.Determines whether a string ends with the characters of a specified string, returning true or false as appropriate.returns a boolean that checks if the given string is equal to the stringreturns a boolean that checks if the given string is equal to the string ignoring case
<A> tag set.returns an array of strings within the current string that matches the regexp.Returns the Unicode Normalization Form of the string.Returns the Unicode Normalization Form of the string.Constructs and returns a new string which contains the specified number of copies of the string on which it was called, concatenated together.returns a new string where the matches of the given regexp are replaced by the return value of the function.returns a new string where the matches of the given
<SMALL> tag set.returns an array of objects whose elements are segments of the current string.returns an array of objects whose elements are segments of the current string.Determines whether a string begins with the characters of a specified string, returning true or false as appropriate.Determines whether a string begins with the characters of a specified string
returns a string with all lowercase letters of the current string.
...
returns a string with all uppercase letters of the current string.Returns the string
...
Table Row (tr)
id
sam
Table Cell (td)
Sample
Div
class
sIndent
Code Block
language
javascript
//the callback definition
function replacer(match, p1, p2, p3, offset, string){
// match is the matched substring
// p1 is non-digits, p2 digits, and p3 non-alphanumerics
// offset is the offset of the matched substring within the total string being examined
// string is the total string being examined
return [p1, p2, p3].join(' - ');
}
// using replace method with replacer callback
newString = "abc12345#$*%".replace(/([^\d]*)(\d*)([^\w]*)/, replacer);
returns a new string where the first match of the given substr is replaced by the return value of the function. The function parameter is the function to be invoked to create the new substring (to put in place of the substring received from parameter #1).
// the callback definition
function replacer(match){
return match.toUpperCase()
}
// using replace method with replacer callback
var newString = "abc".replace("a", replacer);
returns a new string where the matches of the given regexp are replaced by the return value of the function. The function parameter is the function to be invoked to create the new substring (to put in place of the substring received from parameter #1).
Returns the Unicode Normalization Form of the string.
form param can be one of "NFC", "NFD", "NFKC", or "NFKD", specifying the Unicode Normalization Form. If omitted or undefined, "NFC" is used.
These values have the following meanings:
"NFC"
Canonical Decomposition, followed by Canonical Composition.
"NFD"
Canonical Decomposition.
"NFKC"
Compatibility Decomposition, followed by Canonical Composition.
"NFKD"
Compatibility Decomposition.
prs
Parameters
sIndentformparam can be one of "NFC", "NFD", "NFKC", or "NFKD",ret
Returns
sIndent A string containing the Unicode Normalization Form of the given string.clients
returns a new string where the matches of the given regexp are replaced by the return value of the function.
The function parameter is the function to be invoked to create the new substring (to put in place of the substring received from parameter #1).
returns a new string where the first match of the given substr is replaced by the return value of the function.
The function parameter is the function to be invoked to create the new substring (to put in place of the substring received from parameter #1).
returns an array of objects whose elements are segments of the current string.
prs
Parameters
sIndentseparatorSpecifies the string which denotes the points at which each split should occur. If separator is an empty string, str is converted to an array of characters.limitOptional integer specifying a limit on the number of splits to be found.ret
returns an array of objects whose elements are segments of the current string.
prs
Parameters
sIndentseparatorSpecifies the string which denotes the points at which each split should occur. If separator is an empty string, str is converted to an array of characters.limitOptional integer specifying a limit on the number of splits to be found.ret
Determines whether a string begins with the characters of a specified string, returning true or false as appropriate.
prs
Parameters
sIndentsearchStringThe characters to be searched for at the start of this string.positionThe position in this string at which to begin searching for searchString. Defaults to 0.ret
Returns
sIndent true if the given characters are found at the beginning of the string; otherwise, falseclients