camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pakarinen, Jari" <>
Subject Simple language starts with ignore case
Date Mon, 13 Nov 2017 13:59:22 GMT

Would it be possible to have a starts with ignore case (like contains ignore case) in the
simple language ? Currently it is case sensitive.  Or is there a possibility to set the "${header.CamelFileNameOnly}
to lower case somehow ?

.when(simple("${header.CamelFileNameOnly} starts with 'MyFilename'"))

Only way I found to circumvent this was to use the contains ignore case for now, but it is
not quite the same thing:

.when(simple("${header.CamelFileNameOnly} ~~ 'MyFilename'"))


This e-mail transmission may contain confidential or legally privileged information that is
intended only for the individual or entity named in the e-mail address. If you are not the
intended recipient, you are hereby notified that any disclosure, copying, distribution, or
reliance upon the contents of this e-mail is strictly prohibited. If you have received this
e-mail transmission in error, please reply to the sender, so that they can arrange for proper
delivery, and then please delete the message from your computer systems. Thank you.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message