camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yogu13 <yog...@gmail.com>
Subject Re: Substring from nth character to nth from the end
Date Wed, 15 Apr 2015 02:10:59 GMT
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.

Mime
View raw message