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
quot;. - The not existing whitespaces are replaced with "". - Nothing is done. Regards Frank -Original Message- From: Felix Dorner [mailto:fdor...@zed.com] Sent: Tuesday, March 10, 2009 10:53 AM To: Ant Users List Subject: RV: Trim leading spaces line by line Heya, I confirm t

RV: Trim leading spaces line by line

2009-03-10 Thread Felix Dorner
Heya, I confirm that both alternatives work. However, I'm more confident with "^\s*", and don't see why "\s*" works... Felix - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@an

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? ---

Trim leading spaces line by line

2009-03-09 Thread Felix Dorner
Hey, I prefer my xml files to look nice, so I indent multi-line-echoes (these go to a file). Is there a simple ant way to remove all the spaces that were caused by the indentation afterwards? Felix - To unsubscribe, e-mail: us