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