Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 41444 invoked from network); 27 Aug 2003 12:08:45 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 27 Aug 2003 12:08:45 -0000 Received: (qmail 37951 invoked by uid 500); 27 Aug 2003 12:08:24 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 37919 invoked by uid 500); 27 Aug 2003 12:08:23 -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 37894 invoked from network); 27 Aug 2003 12:08:23 -0000 Received: from unknown (HELO chennai-mail.selectica.com) (203.197.147.151) by daedalus.apache.org with SMTP; 27 Aug 2003 12:08:23 -0000 Received: by CHENNAI-MAIL with Internet Mail Service (5.5.2656.59) id ; Wed, 27 Aug 2003 17:24:56 +0530 Message-ID: <7767D3401CCDD711890800B0D0781CCB058B88@CHENNAI-MAIL> From: Nagarajan Murugesan To: Ant Users List Subject: RE: character replacement from a file content Date: Wed, 27 Aug 2003 17:24:55 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C36C92.08258ED0" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C36C92.08258ED0 Content-Type: text/plain; charset="iso-8859-1" Hai, I have tried with regex also, it doen't work Here is the sample script: ie I want to add a space between /gt;< and gt;< in the file containing following text. <?xml version="1.0" encoding="UTF-8"?> <Response><Header><sessionId>8875285a07f7ga4604268hhaa92c2 8699</sessionId><workflowresponse><uname>Mr. Admin User</uname><userid>fsadmin</userid><partyroleid>PR1 0001</partyroleid><firstname>Admin</firstname><middlena me /><lastname>User</lastname><role>ADMINISTRATOR</role ></workflowresponse><action>create</action><type> sptest</type><sessionId>8875285a07f7ga4604268hhaa92c28699</se ssionId><svrType>foundation services</svrType><id>SP1111554</id></Header><spt est id="SP1111554" source="SPDB"><objectid>SP1111554</objectid><IntegerPara /><FloatPara /><StringPara /><DatePara /><ProcedureResponse /></sptest></Response> can you help me to solve this?? Thanks, Nagarajan M. -----Original Message----- From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] Sent: Wednesday, August 27, 2003 5:18 PM To: user@ant.apache.org Subject: RE: character replacement from a file content Have you tried the task? Or the filter? Jan > -----Original Message----- > From: Nagarajan Murugesan [mailto:NMURUGESAN@Selectica.com] > Sent: Wednesday, August 27, 2003 1:28 PM > To: Ant Users List > Subject: character replacement from a file content > > > > Hai All, > > Is there any way to replace particular character or substring > of a given file content with some value. > > For example a file read.txt contains "greatoneisminelsafasmflsfaslfmlf > lflsfldfmdlfldfldfloer" with out any space. > 1. Can I replace all the 'l' character with value say 'jay' > 2. Or can I replace each occurance of 're' with 'ki' > something like that. > > I think pattern replacement will not support this!!! > > Is there any way to do that? Help me in that. > > Thanks, > Nagarajan M. > ------_=_NextPart_001_01C36C92.08258ED0--