Claus Ibsen created CAMEL-20931:
-----------------------------------
Summary: camel-core - Add substring function to simple languge
Key: CAMEL-20931
URL: https://issues.apache.org/jira/browse/CAMEL-20931
Project: Camel
Issue Type: Improvement
Components: camel-core
Reporter: Claus Ibsen
Fix For: 4.7.0
Its common to clip in start or end of a payload, like first and last char or
something.
We can add a substring command to make this easier, and make it much easier to
clip N last elements than today in pure Java String.
substring(1) // clip first char
substring(-1) // clip last char
substring(1,-1) // clip first and last char
So numbers that are negative are from the tail end
And it should silently ignore if the string is empty or shorter etc.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)