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:[email protected]] 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 [email protected] 40 avenue Raymond Poincaré 75116 Paris --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
