ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: <replaceregexp>
Date Sat, 22 Oct 2005 18:46:40 GMT
Mikael Petterson (KI/EAB) wrote:
> Hi,
> 
> I am trying:
> 
> <replaceregexp file="index.htm">
>   <regexp pattern="\(*&#34;CUSTOM_APPL_REV&#34; VALUE = &#34;[A-Z0-9]&#34;\)"/>
>   <substitution expression="\1 kalle"/>
> </replaceregexp>
> 
> but still no match.
> 
> This is the line:
> 
>         <PARAM NAME = "CUSTOM_APPL_REV" VALUE = "R11A02">
> 

Are these well-formed XML documents you are trying to alter here? 
Because if so, our friend XSL and the <xslt> task can do lots of fancy 
stuff, working at the XML level instead of string matching.

-steve

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message