Split a string by a regular expression with the ability to capture the delimiters
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 |
See the dojox/string/tokenize reference documentation for more information.