Hello,
I have a route in Spring that has been converted to a string. I only want
the 8th character to 3rd from the end, so I tried to transform based on
indices. Here is what I've tried.

    <transform>
      <simple>${body.substring(8,${body.length}-1)}</simple>
    </transform>

the message is 10989 characters long, so it tries to cast the string
"10989-1" to an int, and obviously fails. Is there a workaround for this in
simple, or would another scripting language be necessary?

Thanks,
Evan



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

Reply via email to