Hello,

We're trying to split the body at a specific position with the below
statement.

from("direct:abc").setHeader("tmp",
constant("(?<=\\G.{3})")).setBody(simple("${body.split(${header.tmp})}"));

The above does not work because the regular expression contains ')'.
Within the MethodInfo#evaluate the method parameters are determined. This is
done with the ObjectHelper.between(methodName, "(", ")") and than the
regular expression is not correctly anymore.

A solution for the above is to create a bean which does the splitting and
refer this bean in the splitter.


Kind regards,

Richard







--
View this message in context: 
http://camel.465427.n5.nabble.com/MethodInfo-evaluate-expression-tp5764359.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to