Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 50700 invoked from network); 19 Sep 2008 20:50:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Sep 2008 20:50:30 -0000 Received: (qmail 29147 invoked by uid 500); 19 Sep 2008 20:50:27 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 29123 invoked by uid 500); 19 Sep 2008 20:50:27 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 29112 invoked by uid 99); 19 Sep 2008 20:50:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Sep 2008 13:50:26 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kot.begemot@gmail.com designates 209.85.200.175 as permitted sender) Received: from [209.85.200.175] (HELO wf-out-1314.google.com) (209.85.200.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Sep 2008 20:49:27 +0000 Received: by wf-out-1314.google.com with SMTP id 26so708638wfd.26 for ; Fri, 19 Sep 2008 13:49:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=DdjcO7KiDuxumWu1Q6fkStroHSql9uQ7NRXSTZQ3+mI=; b=XkfePwkV6RbC6n6LMYfit0lRbaFFZAOfAQtADoxsnOEoDtmAUjNwhPhEa1UUfjEcju vd90sYrmbh8Ik+Yfq8Te4VcHOhPlrewlKCHdHW5FoPuPrqudwb7arjuzPMPu7L7jjU4E rT5AveehZ09oAzZqMAfz+Ml1lRN1nchCg0LBk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=YwXq76EozycJPhX3IqRhH4bRbdySSNSj1yawrUzNzfZv8PX/M7O1/t4v/tzVknloeh eG4fExIloo79moqKO2KBTv2hOtPiY8krlDM3HhO3yFFEWQv0G5JLNLCEu5o6oflGECkN pUv6wWDSEOFhzc4moux2rkL4MX5p6PXUWs2yo= Received: by 10.114.127.1 with SMTP id z1mr739857wac.94.1221857389836; Fri, 19 Sep 2008 13:49:49 -0700 (PDT) Received: by 10.114.178.7 with HTTP; Fri, 19 Sep 2008 13:49:49 -0700 (PDT) Message-ID: <6e8974e40809191349u19e233b2jbff63584c0789a6e@mail.gmail.com> Date: Fri, 19 Sep 2008 13:49:49 -0700 From: "Vadim Chekan" To: camel-user@activemq.apache.org Subject: Re: El In-Reply-To: <4C1FB9C00D24A140906239533638C4D205715EB7@EXVS04.exserver.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <6e8974e40809190939l559db7eeve2eb97c8328908d6@mail.gmail.com> <4C1FB9C00D24A140906239533638C4D205715EB7@EXVS04.exserver.dk> X-Virus-Checked: Checked by ClamAV on apache.org Doh! This one was silly. java.lang.String.replace replaces chars, not strings. I should use replaceAll :)))) My day job's language is C# :) Vadim. On Fri, Sep 19, 2008 at 9:45 AM, Claus Ibsen wrote: > Hi > > Maybe replace is for single char replace like the one on String. Is there= a replaceAll method? > > > Med venlig hilsen > > Claus Ibsen > ...................................... > Silverbullet > Skovsg=E5rdsv=E6nget 21 > 8362 H=F8rning > Tlf. +45 2962 7576 > Web: www.silverbullet.dk > > -----Original Message----- > From: Vadim Chekan [mailto:kot.begemot@gmail.com] > Sent: 19. september 2008 18:39 > To: camel-user@activemq.apache.org > Subject: Re: El > > Yes, looks like only 1st symbol is repalaced: > > > foo foo > > ${in.body} > > > > ${in.body.replace('foo','bar')} > > > > > > outputs: boo boo > > Vadim. > > On Fri, Sep 19, 2008 at 12:11 AM, Claus Ibsen wrote: >> Hi >> >> Have you tried with something simpler. Replaceing foo -> bar, just to ve= rify that the ' is not causing trouble. >> >> >> Med venlig hilsen >> >> Claus Ibsen >> ...................................... >> Silverbullet >> Skovsg=E5rdsv=E6nget 21 >> 8362 H=F8rning >> Tlf. +45 2962 7576 >> Web: www.silverbullet.dk >> >> -----Original Message----- >> From: Vadim Chekan [mailto:kot.begemot@gmail.com] >> Sent: 19. september 2008 02:20 >> To: camel-user@activemq.apache.org >> Subject: El >> >> Why this one does not work as expected? >> >> >> >> bla'l >> >> ${in.body} >> >> >> >> ${in.body.replace("'","cc")} >> >> >> >> >> >> I have output "blacl" instead of "blaccl" >> >> -- >> From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT >> is explicitly specified >> > > > > -- > From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT > is explicitly specified > --=20 >From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT is explicitly specified