Hi But it could be a good idea with a regexp(pattern) predicate add to a builder, so you can do it with the fluent builders?
I actually thought there was one already. eg to filter all kind of test users in a route: from("activemq:orders"). filter().header("username").regexp("$.*test^").to("seda:queue:justTests") .to("bean:processOrder"); Med venlig hilsen Claus Ibsen ...................................... Silverbullet Skovsgårdsvænget 21 8362 Hørning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: dkozic [mailto:[EMAIL PROTECTED] Sent: 2. oktober 2008 16:03 To: camel-user@activemq.apache.org Subject: Re: Regular Expressions Thanks James Bean language is just OK. I will create custom bean for regex pattern matching. James.Strachan wrote: > > 2008/10/2 dkozic <[EMAIL PROTECTED]>: >> >> I need to inspect value of the body or value of the header against >> regular >> expression. >> It will be good if routing could be made after regexp matching. > > For now the easiest way to do this is just invoke a Java method as an > expression within the routing logic. > http://activemq.apache.org/camel/bean-language.html > >> Can you tell me more about helper methods you mentioned? > > They are just helper methods for creating a regex expression for use in > the DSL > > > > -- > James > ------- > http://macstrac.blogspot.com/ > > Open Source Integration > http://open.iona.com > > -- View this message in context: http://www.nabble.com/Regular-Expressions-tp19778962s22882p19779910.html Sent from the Camel - Users mailing list archive at Nabble.com.