Re: Trim leading spaces line by line

2009-03-10 Thread Francis Galiegue
Le mardi 10 mars 2009, Harnack Frank a écrit : > Hello Felix, > > I'm more confident with "^\s*" (or better "^\s+") too. > > I prefer "^\s+", because it only matches with really existing spaces. > > Maybe "\s*" works like this: > > - Not existing whitespaces at the beginning of the line matche

RE: Trim leading spaces line by line

2009-03-10 Thread Harnack Frank
Hello Felix, I'm more confident with "^\s*" (or better "^\s+") too. I prefer "^\s+", because it only matches with really existing spaces. Maybe "\s*" works like this: - Not existing whitespaces at the beginning of the line matches with "\s*". - The not existing whitespaces are replaced with ""

RE: Trim leading spaces line by line

2009-03-10 Thread Harnack Frank
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: > >file="xyz.txt" > match="\s*" Err... "^\s*" would be better. If there's no leading s

Re: Trim leading spaces line by line

2009-03-10 Thread Francis Galiegue
Le mardi 10 mars 2009, Harnack Frank a écrit : > Hello Felix, > > try this: > >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

RE: Trim leading spaces line by line

2009-03-10 Thread Harnack Frank
Hello Felix, try this: Regards Frank -Original Message- From: Felix Dorner [mailto:fdor...@zed.com] Sent: Monday, March 09, 2009 2:35 PM To: Ant Users List Subject: RE: Trim leading spaces line by line I found the solution my self in the ant manual

RE: Trim leading spaces line by line

2009-03-09 Thread Felix Dorner
I found the solution my self in the ant manual: It would be nice to do this on-the-fly, so that source and dest are the same. Is this possible somehow? ---