The above example (assuming the > is added to the </foreach) should return the single value "a||B". Please correct the example so the problem is reproducable
moo added a comment - 04/Jun/10 02:39 PM The above example (assuming the > is added to the </foreach) should return the single value "a||B". Please correct the example so the problem is reproducable
Using a single character delimeter uses StringTokenizer(), which collapsed multiple delimiters.
Multiple character delimiters are always interpreted as regular expressions, and empty
values are returned properly
moo added a comment - 16/Jun/10 05:28 AM Work around:
Use: <foreach name=i list="A||B" delim="[|]"> ...
Using a single character delimeter uses StringTokenizer(), which collapsed multiple delimiters.
Multiple character delimiters are always interpreted as regular expressions, and empty
values are returned properly
The above example (assuming the > is added to the </foreach) should return the single value "a||B". Please correct the example so the problem is reproducable