The delimiter can be provided as either plain text or a regular expression.
The default delimiter is the regular expression \s*,\s*
which is
CSV with optional white space either side.
delimiter | The delimiter. |
escape | An escape character to use. |
quote | An quote character to use. |
regexp | True if The delimiter as a regular expression. |
text | The value to parse. |
Example 1 | Tokenize comma separated values. |
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | No. |
The delimiter. This is treated as plain text unless the regexp property is true, and then it is treated as a regular expression.
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | No. |
An escape character to use.
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | No. |
An quote character to use.
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | No. |
True if The delimiter as a regular expression.
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | No. If missing the result of the conversion will be null. |
The value to parse.
Tokenize comma separated values.
<oddjob> <job> <foreach preLoad="7" purgeAfter="3"> <values> <tokenizer text="1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12"/> </values> <configuration> <xml> <foreach id="test"> <job> <echo name="Echo ${test.current}">I'm ${test.current}</echo> </job> </foreach> </xml> </configuration> </foreach> </job> </oddjob>