Home String Object String.search() String.split()

3.2.11.12 String.slice()

result = string.slice(beginslice [,endSlice]);

Extract a section of a string and return a new string. The section to extract is defined by beginSlice which is the zero-based index at which to begin extraction. and endSlice which is the zero-based index at which to end extraction. If endSlice is omitted, the function extracts to the end of the string.

See also: String.substr(), String.substring()


Home String Object String.search() String.split()

Search

Latest news from the Forum