You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Michael Rambichler <mi...@rambichler.at> on 2023/05/25 06:23:21 UTC

Simple Language

Hi all,

I am struggling with a simple "Simple" Language OGNL use:

I would like to replace a String with a regex via simple
Please see the following example:

.setHeader("result", simple("${header.CamelFileName.replaceAll('^.*.pdf',
'Hello')}"))

But it does not work at all. Do I miss something?

Thanks for any help
 Michael

Re: Simple Language

Posted by Claus Ibsen <cl...@gmail.com>.
What camel version do you use, and what do you have as input and get as
output

On Thu, May 25, 2023 at 8:23 AM Michael Rambichler <mi...@rambichler.at>
wrote:

> Hi all,
>
> I am struggling with a simple "Simple" Language OGNL use:
>
> I would like to replace a String with a regex via simple
> Please see the following example:
>
> .setHeader("result", simple("${header.CamelFileName.replaceAll('^.*.pdf',
> 'Hello')}"))
>
> But it does not work at all. Do I miss something?
>
> Thanks for any help
>  Michael
>


-- 
Claus Ibsen
-----------------
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2