The regex in the code above is never true in 2.0-M2
from("direct:a").setBody(constant("000000000001111111"))
.choice()
.when( body(String.class).regex("^.*") ).process( new MyProcessor() )
.otherwise().end
In 2.0-M1 is ok.
In java Pattern/Matcher it runs ok too.
This regex is to verify if the line starts with "0".
Anyone know a workaround for this?
I need a body(String.class).startsWith("0") or similar... In file processor
this is very usefull...
--
View this message in context:
http://www.nabble.com/camel-2.0-M2-regex-bug-tp24294888p24294888.html
Sent from the Camel - Users mailing list archive at Nabble.com.