04-04-2014 03:19 AM
04-04-2014 03:33 AM
04-04-2014 04:22 AM
04-04-2014 04:39 AM
split
It is used to split a string into a sequence of strings along the occurrences of another string.
For example:
<#list "someMOOtestMOOtext"?split("MOO") as x>
- ${x}
</#list>
will print:
- some
- test
- text
Note that it is assumed that all occurrences of the separator is before
a new item (except with "r" flag - see later), thus:
<#list "some,,test,text,"?split(",") as x>
- "${x}"
</#list>
will print:
- "some"
- ""
- "test"
- "text"
- ""
split accepts an optional flags parameter, as its 2nd parameter. There's a historical glitch with the r (regular expression) flag; it removes the empty elements from the end of the resulting list, so with ?split(",", "r") in the last example the last "" would be missing from the output.
08-01-2014 05:56 AM
08-01-2014 11:22 PM
08-03-2014 11:59 PM
${grandTotal?string(",###.00")}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.