camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yogu13 <>
Subject Re: Substring from nth character to nth from the end
Date Wed, 15 Apr 2015 02:10:59 GMT

Since you are going to reduce the length by 1, you can try using the unary
operator which would be like ${body.length}--

also the other thing you can try is enclosing the operation as an expression
${${body.length} - 1} 

Note: i havent tried this, but perhaps you can check and let us know if that


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message