ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harnack Frank" <Frank.Harn...@bitmarck.de>
Subject RE: Trim leading spaces line by line
Date Tue, 10 Mar 2009 09:47:40 GMT
Hello Francis,

first I thought, you were right, but it works with "\s*".

"\s+" would not.

But "^\s+" or "^\s*" works too.

Regards

Frank

-----Original Message-----
From: Francis Galiegue [mailto:fge@one2team.com] 
Sent: Tuesday, March 10, 2009 9:19 AM
To: Ant Users List
Subject: Re: Trim leading spaces line by line

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


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


Mime
View raw message