Hi,

    I have a simple route in which it will transfer a file from one file
endpoint to other file endpoint as below

<from uri="file:/mnt/input" />
        <setHeader headerName="CamelFileName" >
                        <simple>${file:name.noext} regex 
'([^_]*).*'.${file:ext}</simple>
        </setHeader>
<to uri="file:/mnt/output" />

For example if i place a file "abcd_20131209.csv" in /mnt/input i should get
abcd.csv in /mnt/output
but the output file name what i am getting is "abcd_20131209 regex
'([^_]*).*'.csv"

Am i missing something in the regex?

Can someone help me out in this?

Camel Version - 2.10.0


Cheers!!!
Bharath.R



--
View this message in context: 
http://camel.465427.n5.nabble.com/Facing-problem-in-regex-when-used-in-Simple-Expression-Language-tp5744717.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to