David-

I'm not clear what you mean by 'block' criteria
If you could post the 'block' criteria then those of us on this list can take a 
look at developing a regexp which will accomplish the objective for you-

Saludos,

M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "David" <[EMAIL PROTECTED]>
To: "Ant Apache User Group" <user@ant.apache.org>
Sent: Monday, May 29, 2006 1:34 PM
Subject: Re: Insert a file into another at given point (not necessary at the 
end)


> Dear Martin,
>   
>  I don't know if I can do it with ReplaceRegExp, I know this target, because 
> I use it for 
>  situation. I need to find a correct way to match the middle of the file and 
> to delimit each block.
>   
>  Thanks for your input,
>   
>  David
>   
>  >Have you looked at ReplaceRegExp Task from optional.jar..here is the doc
>>http://ant.apache.org/manual/OptionalTasks/replaceregexp.html
>>You would be able to replace match with replace for all instances where match 
>>\
>>condition is met  <replaceregexp file="${src}/build.properties"
>>                         match="OldProperty=(.*)"
>>                         replace="NewProperty=\1"
>>                         byline="true"/>
>>replaces occurrences of the property name "OldProperty" with "NewProperty" in 
>>a \
>>properties file, preserving the existing value, in the file 
>>${src}/build.properties
> 
>>Is this what you're looking for ?
> 
>>Martin --
> 
> 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Get on board. You're invited to try the new Yahoo! Mail Beta.

Reply via email to