Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 91566 invoked from network); 23 Jun 2004 07:10:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Jun 2004 07:10:35 -0000 Received: (qmail 32140 invoked by uid 500); 23 Jun 2004 07:10:42 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 31995 invoked by uid 500); 23 Jun 2004 07:10:39 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 31832 invoked by uid 99); 23 Jun 2004 07:10:35 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [206.190.39.183] (HELO web52906.mail.yahoo.com) (206.190.39.183) by apache.org (qpsmtpd/0.27.1) with SMTP; Wed, 23 Jun 2004 00:10:33 -0700 Message-ID: <20040623070954.52093.qmail@web52906.mail.yahoo.com> Received: from [212.95.183.130] by web52906.mail.yahoo.com via HTTP; Wed, 23 Jun 2004 00:09:54 PDT Date: Wed, 23 Jun 2004 00:09:54 -0700 (PDT) From: Ivan Ivanov Subject: Re: AW: Backspace in regular expression To: Ant Users List In-Reply-To: <3B48940F2D7712428BD31A041A367DDC5713FB@omicron.win.xtramind.dfki.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Oliver and Peter, thank you for your answers. However, I still fail to make it. I am trying the following snippet: and the file bcks.txt contains treva greva preva I expect after successful execution the file to contain t g p However when I invoke the above snippet ant complaints for the &: The entity name must immediately follow the '&' in the entity reference. If I change atribute to it runs but the result file contains tr#&10; gr#&10; pr#&10; which is not what I expect. Finally, when I change attribute to the result in bcks.txt is tr\b gr\b pr\b So no success here. Any hints on how to make one of these work? Thank you for your help Ivan --- Oliver Ashoff wrote: > > Try >  > instead of > \b > In general, the expression > #&; > encodes any character where > is a number in decimal notation. > > Works fine with LINE FEED: #&10; > > Oliver > > > -----Urspr�ngliche Nachricht----- > > Von: Ivan Ivanov > [mailto:rambiusparkisanius@yahoo.com] > > Gesendet: Dienstag, 22. Juni 2004 12:02 > > An: user@ant.apache.org > > Betreff: Backspace in regular expression > > > > > > Dear Colleagues, > > > > I want to replace a string in a file with > backspace, > > but I do not know how to escape backspace literal > > "\b". I tried > > > > > > > > > > > > but it replace "alabala" with letter "b" and some > > other variants but with no success. > > > > Regards Ivan > > > > > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > New and Improved Yahoo! Mail - 100MB free storage! > > http://promotions.yahoo.com/new_mail > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > > For additional commands, e-mail: > user-help@ant.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org > > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org