cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans>
Subject jx wierdness
Date Fri, 05 Nov 2004 12:31:01 GMT

Repost from users@,

Can anyone explain me why
${mystring.substring(mystring.indexOf('abc'))} works,
${mystring.substring(mystring.indexOf('abc') - 3)} works

${mystring.substring(mystring.indexOf('abc') + 3 )} *not* ?

Note that the 3 is irrelevant here, the match occurs somewhere in the 
middle of a 20char string. ('abc' occurs only once)

I can subtract as much as i want, but adding results in the expression 
returning an empty string.

How can i get around this ?


View raw message