Hi, thanks for the tip, nearly perfect. With
Env1, Env2, and <replaceregex pattern="${line.separator}" flags="g" replace=","/> it gives me -> Env1,,Env2,, without flags="g" it gives me -> Env1,,Env2, The second ',' between the Env's and the last ',' after Env2 shouldn't appear. then it would be perfect. Any hints ? Regards, Gilbert -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 2:31 PM To: [EMAIL PROTECTED] Subject: AW: Extract property out of multiline file Just a thought ... <loadfile> <filterchain> <tokenfilter> <filetokenizer/> <replaceregex pattern="${line.separator}" flags="g" replace=","/> </tokenfilter> </filterchain> </loadfile> Jan > -----Ursprüngliche Nachricht----- > Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] > Gesendet am: Mittwoch, 8. Dezember 2004 14:21 > An: ant_user (E-Mail) > Betreff: Extract property out of multiline file > > > Hi, i have a txtfile generated by a script. > > The file looks like that : > > Env1, > Env2, > Env3, > > sometimes there's only one value in that file, sometimes > more, like above. > > I want to stript the ',' and get that Env's into one property : > > myproperty = "Env1,Env2,Env3" > > How to do that without scripting ? > > Thanks for any hints!! > > Regards, Gilbert > > > > > > --------------------------------------------------------------------- > 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]