XML Script logo
Splitting strings with a character as the delimiter
Code
# $.teststring := "This is the string to split, the delimiter is set to comma, not 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 comma, not space.

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

x.5702

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