Child pages
  • String

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Div
styledisplay:none

DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.

Div
iddescription



HTML Table
id
classservoy sSummary
Colgroup Tag
Col
width80px
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Property Summary
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
length
Gives the length of the string.



HTML Table
id
classservoy sSummary
Colgroup Tag
Col
width80px
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
anchor(nameAttribute)
returns a copy of the string embedded within an anchor <A> tag set.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
big()
returns a copy of the string embedded within an <BIG> tag set.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
blink()
returns a copy of the string embedded within an <BLINK> tag set.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
bold()
returns a copy of the string embedded within an <B> tag set.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
charAt(index)
returns a character of the string.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
charCodeAt(index)
returns a decimal code of the char in the string.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
concat(string2)
returns a string that appends the parameter string to the string.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
concat(string2, stringN)
returns a string that appends the parameter string to the string.
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
equals(other)
returns a boolean that checks if the given string is equal to the string
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
equalsIgnoreCase(other)
returns a boolean that checks if the given string is equal to the string ignoring case
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
fixed()
returns a copy of the string embedded within an anchor <TT> tag set.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
fontcolor(color)
returns a copy of the string embedded within an <FONT> tag set, the color param is assigned the the color attribute.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
fontsize(size)
returns a copy of the string embedded within an <FONT> tag set, The size param is set to the SIZE attribute
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
fromCharCode(num)
returns a string created by using the specified sequence of Unicode values.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
indexOf(searchValue, fromIndex)
returns the found index of the given string in string.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
italics()
returns a copy of the string embedded within an <I> tag set
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
lastIndexOf(searchValue, fromIndex)
returns the found index of the given string in string from the end.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
link(hrefAttribute)
returns a copy of the string embedded within an <A> tag set.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
localeCompare(otherString)
Table Row (tr)
Table Cell (td)
Array
Table Cell (td)
match(regexp)
returns an array of strings within the current string that matches the regexp.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
replace(regexp, function)
returns a new string where the matches of the given regexp are replaced by the return value of the function.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
replace(regexp, newSubStr)
returns a new string where the matches of the given regexp are replaced by newSubStr.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
replace(substr, function)
returns a new string where the first match of the given substr is replaced by the return value of the function.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
replace(substr, newSubStr)
returns a new string where the first match of the given substr is replaced by newSubStr.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
search(regexp)
returns an index where the first match is found of the regexp
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
slice(beginSlice)
returns a substring of the string.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
slice(beginSlice, endSlice)
returns a substring of the string.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
small()
returns a copy of the string embedded within an <SMALL> tag set.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
split(separator, limit)
returns an array of objects whose elements are segments of the current string.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
strike()
returns a copy of the string embedded within an <STRIKE> tag set.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
sub()
returns a copy of the string embedded within an <SUB> tag set.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
substr(start)
returns a substring of the string from the start with the number of chars specified.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
substr(start, length)
returns a substring of the string from the start with the number of chars specified.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
substring(indexA)
Returns a substring of the string from the start index until the end index.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
substring(indexA, indexB)
Returns a substring of the string from the start index until the end index.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
sup()
returns a copy of the string embedded within an <SUP> tag set.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
toLocaleLowerCase()
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
toLocaleUpperCase()
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
toLowerCase()
returns a string with all lowercase letters of the current string.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
toUpperCase()
returns a string with all uppercase letters of the current string.



HTML Table
idproperty
classservoy sDetail
Colgroup Tag
Col
colspan2
width100%
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Property Details
Table Body (tbody)
idlength
Table Row (tr)
idname
Table Cell (td)

length

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gives the length of the string.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.length;
Table Row (tr)
classlastDetailRow
Table Cell (td)
 



HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Col
colspan2
width100%
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Details
Table Body (tbody)
idanchor-String
Table Row (tr)
idname
Table Cell (td)

anchor

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
anchor
Span
(nameAttribute)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a copy of the string embedded within an anchor <A> tag set.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} nameAttribute
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.anchor();
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idbig
Table Row (tr)
idname
Table Cell (td)

big

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
big
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a copy of the string embedded within an <BIG> tag set.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.big();
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idblink
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
blink
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a copy of the string embedded within an <BLINK> tag set.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.blink();
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idbold
Table Row (tr)
idname
Table Cell (td)

bold

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
bold
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a copy of the string embedded within an <B> tag set.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.bold();
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idcharAt-Number
Table Row (tr)
idname
Table Cell (td)

charAt

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
charAt
Span
(index)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a character of the string.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} index
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.charAt(integer_position);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idcharCodeAt-Number
Table Row (tr)
idname
Table Cell (td)

charCodeAt

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
charCodeAt
Span
(index)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a decimal code of the char in the string.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} index
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.charCodeAt(integer_position);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idconcat-String
Table Row (tr)
idname
Table Cell (td)

concat

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
concat
Span
(string2)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a string that appends the parameter string to the string.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} string2
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.concat(string);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idconcat-String_String
Table Row (tr)
idname
Table Cell (td)

concat

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
concat
Span
(string2, stringN)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a string that appends the parameter string to the string.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} string2
{String} stringN
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.concat(string);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idequals-String
Table Row (tr)
idname
Table Cell (td)

equals

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Boolean
Span
stylefont-weight: bold;
equals
Span
(other)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a boolean that checks if the given string is equal to the string
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} other
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Boolean
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.equals(string);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idequalsIgnoreCase-String
Table Row (tr)
idname
Table Cell (td)

equalsIgnoreCase

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Boolean
Span
stylefont-weight: bold;
equalsIgnoreCase
Span
(other)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a boolean that checks if the given string is equal to the string ignoring case
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} other
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Boolean
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.equalsIgnoreCase(string);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idfixed
Table Row (tr)
idname
Table Cell (td)

fixed

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
fixed
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a copy of the string embedded within an anchor <TT> tag set.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.fixed();
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idfontcolor-String
Table Row (tr)
idname
Table Cell (td)

fontcolor

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
fontcolor
Span
(color)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a copy of the string embedded within an <FONT> tag set, the color param is assigned the the color attribute.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} color
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.fontcolor(color);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idfontsize-Number
Table Row (tr)
idname
Table Cell (td)

fontsize

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
fontsize
Span
(size)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a copy of the string embedded within an <FONT> tag set, The size param is set to the SIZE attribute
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} size
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.fontsize(size);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idfromCharCode-NumberArray
Table Row (tr)
idname
Table Cell (td)

fromCharCode

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
fromCharCode
Span
(num)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a string created by using the specified sequence of Unicode values.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number...} num
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
String.fromCharCode(num)
// String.fromCharCode(num1,num2,num3)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idindexOf-String_Number
Table Row (tr)
idname
Table Cell (td)

indexOf

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
indexOf
Span
(searchValue, fromIndex)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns the found index of the given string in string.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} searchValue
{Number} fromIndex
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.indexOf(string,startPosition);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
iditalics
Table Row (tr)
idname
Table Cell (td)

italics

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
italics
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a copy of the string embedded within an <I> tag set
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.italics();
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idlastIndexOf-String_Number
Table Row (tr)
idname
Table Cell (td)

lastIndexOf

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
lastIndexOf
Span
(searchValue, fromIndex)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns the found index of the given string in string from the end.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} searchValue
{Number} fromIndex
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.lastIndexOf(string,startPosition);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idlink-String
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
link
Span
(hrefAttribute)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a copy of the string embedded within an <A> tag set.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} hrefAttribute
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.link(url);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idlocaleCompare-String
Table Row (tr)
idname
Table Cell (td)

localeCompare

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
localeCompare
Span
(otherString)
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} otherString
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var s = "Have a nice day!";
application.output(s.localeCompare("Hello"));
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idmatch-RegExp
Table Row (tr)
idname
Table Cell (td)

match

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Array
Span
stylefont-weight: bold;
match
Span
(regexp)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns an array of strings within the current string that matches the regexp.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{RegExp} regexp
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Array
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.match(regexpr);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idreplace-RegExp_Function
Table Row (tr)
idname
Table Cell (td)

replace

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
replace
Span
(regexp, function)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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).
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{RegExp} regexp
{Function} function
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
//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);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idreplace-RegExp_String
Table Row (tr)
idname
Table Cell (td)

replace

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
replace
Span
(regexp, newSubStr)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a new string where the matches of the given regexp are replaced by newSubStr.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{RegExp} regexp
{String} newSubStr
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.replace(regexp,newSubStr);
//var re = /(\w+)\s(\w+)/;
//var str = "John Smith";
//var newstr = str.replace(re, "$2, $1");
//application.output(newstr);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idreplace-String_Function
Table Row (tr)
idname
Table Cell (td)

replace

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
replace
Span
(substr, function)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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).
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} substr
{Function} function
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
// the callback definition
function replacer(match){
		return match.toUpperCase()
}
// using replace method with replacer callback
var newString = "abc".replace("a", replacer);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idreplace-String_String
Table Row (tr)
idname
Table Cell (td)

replace

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
replace
Span
(substr, newSubStr)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a new string where the first match of the given substr is replaced by newSubStr.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} substr
{String} newSubStr
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.replace(substr,newSubStr);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idsearch-RegExp
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
search
Span
(regexp)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns an index where the first match is found of the regexp
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{RegExp} regexp
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.search(regexpr);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idslice-Number
Table Row (tr)
idname
Table Cell (td)

slice

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
slice
Span
(beginSlice)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a substring of the string.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} beginSlice
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.slice(start,end);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idslice-Number_Number
Table Row (tr)
idname
Table Cell (td)

slice

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
slice
Span
(beginSlice, endSlice)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a substring of the string.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} beginSlice
{Number} endSlice
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.slice(start,end);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idsmall
Table Row (tr)
idname
Table Cell (td)

small

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
small
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a copy of the string embedded within an <SMALL> tag set.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.small();
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idsplit-String_Number
Table Row (tr)
idname
Table Cell (td)

split

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
split
Span
(separator, limit)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns an array of objects whose elements are segments of the current string.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} separator
{Number} limit
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.split(delimiter,limitInteger);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idstrike
Table Row (tr)
idname
Table Cell (td)

strike

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
strike
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a copy of the string embedded within an <STRIKE> tag set.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.strike();
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idsub
Table Row (tr)
idname
Table Cell (td)

sub

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
sub
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a copy of the string embedded within an <SUB> tag set.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.sub();
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idsubstr-Number
Table Row (tr)
idname
Table Cell (td)

substr

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
substr
Span
(start)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a substring of the string from the start with the number of chars specified.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} start
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.substr(start, number_of_chars);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idsubstr-Number_Number
Table Row (tr)
idname
Table Cell (td)

substr

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
substr
Span
(start, length)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a substring of the string from the start with the number of chars specified.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} start
{Number} length
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.substr(start, number_of_chars);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idsubstring-Number
Table Row (tr)
idname
Table Cell (td)

substring

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
substring
Span
(indexA)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns a substring of the string from the start index until the end index.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} indexA
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.substring(start, end);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idsubstring-Number_Number
Table Row (tr)
idname
Table Cell (td)

substring

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
substring
Span
(indexA, indexB)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns a substring of the string from the start index until the end index.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} indexA
{Number} indexB
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.substring(start, end);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idsup
Table Row (tr)
idname
Table Cell (td)

sup

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
sup
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a copy of the string embedded within an <SUP> tag set.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.sup();
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idtoLocaleLowerCase
Table Row (tr)
idname
Table Cell (td)

toLocaleLowerCase

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
toLocaleLowerCase
Span
()
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var s = "Have a nice day!";
application.output(s.toLocaleLowerCase());
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idtoLocaleUpperCase
Table Row (tr)
idname
Table Cell (td)

toLocaleUpperCase

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
toLocaleUpperCase
Span
()
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var s = "Have a nice day!";
application.output(s.toLocaleUpperCase());
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idtoLowerCase
Table Row (tr)
idname
Table Cell (td)

toLowerCase

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
toLowerCase
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a string with all lowercase letters of the current string.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.toLowerCase();
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idtoUpperCase
Table Row (tr)
idname
Table Cell (td)

toUpperCase

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
toUpperCase
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
returns a string with all uppercase letters of the current string.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
string.toUpperCase();
Table Row (tr)
classlastDetailRow
Table Cell (td)