Functiondojox.string.tokenize

dojo.require("dojox.string.tokenize");
defined in dojox/string/tokenize.js

Split a string by a regular expression with the ability to capture the delimeters

Usage

function (/*String*/ str, /*RegExp*/ re, /*Function?*/ parseDelim, /*Object?*/ instance) (view source)
parametertypedescription
strString 
reRegExp 
parseDelimFunctionOptional. Each group (excluding the 0 group) is passed as a parameter. If the function returns a value, it's added to the list of tokens.
instanceObjectOptional. Used as the "this" instance when calling parseDelim