ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject RE: regular expression help
Date Tue, 02 Aug 2005 13:21:37 GMT

Do you mean:
<propertyregexp property="testprefix"  regexp="\w*" replace="myPrefix"/>
But then all the words would be replaced by the prefix , no?
Forgive me i ama beginner in regular expressions:)

Hind Lwahhabi.
Accenture Belgium - Financial Services & Insurance
Koningstraat 145 Rue Royale, B-1000 Brussels, Belgium
mobile: +32 499567544
phone: + 32 2 226 75 44

-----Original Message-----
From: James Fuller []
Sent: Tue 8/2/2005 3:11 PM
To: Ant Users List
Subject: Re: regular expression help wrote:

>Hello guys;
>I would like some help for the following.
>Using <propertyregexp> how would you perform the following:
>input string="Foo Bar Jeff Blabla"
>replacing prefix="myPrefix"
>result string="myPrefixFoo myPrefixBar myPrefixJeff myPrefixBlabla"
 \w* should match every word or u could use the ^ method.

I normally use something like this to match words

gl, Jim Fuller

To unsubscribe, e-mail:
For additional commands, e-mail:

This message is for the designated recipient only and may contain privileged, proprietary,
or otherwise private information.  If you have received it in error, please notify the sender
immediately and delete the original.  Any other use of the email by you is prohibited.

View raw message