Path: blob/main/files/en-us/web/exslt/str/split/index.md
6532 views
------{{XSLTRef}}{{QuickLinksWithSubpages("/en-US/docs/Web/EXSLT")}}
str:split() splits a string using a pattern string to determine where the splits should occur, returning a node-set containing the resulting strings.
Syntax
Parameters
string: The string to split.
pattern: The pattern indicating where to split the string.
Returns
A node-set of token elements, each containing one token from the string.
Example
Returns a node set like: