Specifications

re.pos(1); // returns 6, position of "John Doe"
re.pos(2); // returns -1, no more captures
Size
A Size object represents a two-dimensional size, using width and height.
Size Construction
The Size class provides three constructors:
var size = new Size( 100, 200 ); // width = 100, height = 200
var duplicate = new Size( size ); // width = 100, height = 200
var empty = new Size(); // width = 0, height = 0
Size Properties
The width of the size.
width : Number
The height of the size.
height : Number
Size Functions
Swaps the width and height of the size.
translate( )
String
A String is a sequence of zero or more Unicode characters.
String Construction
Strings can be created and concatenated as follows.
var text = "this is a";
var another = new String( "text" );
var concat = text + " " + another; // concat == "this is a text"
String Properties
The length property specifies the length of the string.
length : Number
Static String Functions
Returns a string made up of the characters with code
code1, code2, etc, according to their Unicode character
codes.
var s = String.fromCharCode( 65, 66, 67, 68 );
// s == "ABCD"
fromCharCode ( code1 : Number,
code2 : Number, ... )
383
Enfocus Switch 10