Child pages
  • String

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Rev: 1381949650879

...

HTML Table
id
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Property Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#lengthlength
Gives the length of the string.

HTML Table
id
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

tbody
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
tbody
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#anchoranchor(nameAttribute)
returns a copy of the string embedded within an anchor <A> tag set.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#bigbig()
returns a copy of the string embedded within an <BIG> tag set.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#blinkblink()
returns a copy of the string embedded within an <BLINK> tag set.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#boldbold()
returns a copy of the string embedded within an <B> tag set.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#charAtcharAt(index)
returns a character of the string.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#charCodeAtcharCodeAt(index)
returns a decimal code of the char in the string.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#concatconcat(string2)
returns a string that appends the parameter string to the string.
tbody
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#concatconcat(string2, stringN)
returns a string that appends the parameter string to the string.
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#equalsequals(other)
returns a boolean that checks if the given string is equal to the string
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#equalsIgnoreCaseequalsIgnoreCase(other)
returns a boolean that checks if the given string is equal to the string ignoring case
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#fixedfixed()
returns a copy of the string embedded within an anchor <TT> tag set.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#fontcolorfontcolor(color)
returns a copy of the string embedded within an <FONT> tag set, the color param is assigned the the color attribute.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#fontsizefontsize(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)
#indexOfindexOf(searchValue, fromIndex)
returns the found index of the given string in string.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#italicsitalics()
returns a copy of the string embedded within an <I> tag set
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#lastIndexOflastIndexOf(searchValue, fromIndex)
returns the found index of the given string in string from the end.
tbody
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#linklink(hrefAttribute)
returns a copy of the string embedded within an <A> tag set.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#localeComparelocaleCompare(otherString)
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (td)
#matchmatch(regexp)
returns an array of strings within the current string that matches the regexp.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#replacereplace(regexp, function)
returns a new string where some or all 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)
#replacereplace(regexp, newSubStr)
returns a new string where some or all the matches of the given regexp are replaced by newSubStr.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#replacereplace(substr, function)
returns a new string where the first match of the string given substr is replaced .
by the return value of the function.
tbody
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#replacereplace(substr, newSubStr)
returns a new string where the first match of the string given substr is replaced by newSubStr.
tbody
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#searchsearch(regexp)
returns an index where the first match is found of the regexp
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#sliceslice(beginSlice)
returns a substring of the string.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#sliceslice(beginSlice, endSlice)
returns a substring of the string.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#smallsmall()
returns a copy of the string embedded within an <SMALL> tag set.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#splitsplit(separator, limit)
returns an array of objects whose elements are segments of the current string.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#strikestrike()
returns a copy of the string embedded within an <STRIKE> tag set.
tbody
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#subsub()
returns a copy of the string embedded within an <SUB> tag set.
tbody
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#substrsubstr(start)
returns a substring of the string from the start with the number of chars specified.
tbody
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#substrsubstr(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)
#substringsubstring(indexA)
Returns a substring of the string from the start index until the end index.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#substringsubstring(indexA, indexB)
Returns a substring of the string from the start index until the end index.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#supsup()
returns a copy of the string embedded within an <SUP> tag set.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#toLocaleLowerCasetoLocaleLowerCase()
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#toLocaleUpperCasetoLocaleUpperCase()
tbody
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#toLowerCasetoLowerCase()
returns a string with all lowercase letters of the current string.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#toUpperCasetoUpperCase()
returns a string with all uppercase letters of the current string.

HTML Table
idproperty
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
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
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
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)
id

...

fromCharCode-

...

NumberArray
Table Row (tr)
idname
Table Cell (td)

indexOf

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)
id

...

indexOf-String_Number
Table Row (tr)
idname
Table Cell (td)

italics

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)
id

...

prs
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)
id

...

italics
Table Row (tr)
idname
Table Cell (td)

lastIndexOf

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

...

idprs

...

classsIndent

...

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)
id

...

lastIndexOf-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)
id

...

link-String
Table Row (tr)
idname
Table Cell (td)

localeCompare

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;

...

String
Span
stylefont-weight: bold;

...

link
Span
(

...

hrefAttribute)
Table Row (tr)
id

...

des
Table Cell (td)

...

Div
classsIndent

...

returns a copy of the string embedded within an <A> tag set.
Table Row (tr)
id

...

prs
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)
id

...

localeCompare-

...

String
Table Row (tr)
idname
Table Cell (td)

match

localeCompare
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;

...

Number
Span
stylefont-weight: bold;

...

localeCompare
Span
(

...

otherString)
Table Row (tr)
id

...

prs
Table Cell (td)
Parameters
Div
classsIndent

...

{String} otherString
Table Row (tr)
id

...

ret
Table Cell (td)

...

idret

...

...

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)
id

...

match-RegExp

...

Table Row (tr)
idname
Table Cell (td)

replace

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)
id

...

classsIndent

...

languagejavascript

...

sam
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)