Hello,

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
works.

Regards,
-Yogesh



--
View this message in context: 
http://camel.465427.n5.nabble.com/Substring-from-nth-character-to-nth-from-the-end-tp5765788p5765798.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to