XML Script logo
Splitting strings with a string as the delimiter
Code
# $.teststring := "This is the string to split, the delimiter is set to a string, comma-space." #
# $.teststring #
<_split delimiter=", " name="OutputString" string="# $.teststring #" />
<_foreach element="OutputString" >
# .__content #</_foreach>
Output
This is the string to split, the delimiter is set to a string, comma-space.

This is the string to split
the delimiter is set to a string
comma-space.
Ref

x.5703

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited