ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis Galiegue <...@one2team.com>
Subject Re: Trim leading spaces line by line
Date Tue, 10 Mar 2009 08:19:13 GMT
Le mardi 10 mars 2009, Harnack Frank a écrit :
> Hello Felix,
> 
> try this:
> 
> <replaceregexp
> 	file="xyz.txt"
> 	match="\s*"

Err... "^\s*" would be better. If there's no leading space, the first series 
of spaces will be replaced by nothing instead.


-- 
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 6 83 87 78 75
Tel : +33 (0) 1 78 94 55 52
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message