dojox/string/tokenize (version 1.10)

Summary

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

Usage

tokenize(str,re,parseDelim,instance);
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

Returns:Array

See the dojox/string/tokenize reference documentation for more information.

Method Summary

Methods

Error in the documentation? Can’t find what you are looking for? Let us know!