ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: character replacement from a file content
Date Wed, 27 Aug 2003 11:47:32 GMT
Have you tried the <replace> task?
Or the <regex> 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.
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message