You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Jorg Heymans <jh...@domek.be> on 2004/11/05 13:31:01 UTC
jx wierdness
Repost from users@,
Can anyone explain me why
${mystring.substring(mystring.indexOf('abc'))} works,
${mystring.substring(mystring.indexOf('abc') - 3)} works
but
${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 ?
Regards
Jorg