dojox.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
parameter | type | description |
---|---|---|
str | String | |
re | RegExp | |
parseDelim | Function | Optional. 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. |
instance | Object | Optional. Used as the "this" instance when calling parseDelim |