ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Fix <jakob....@gmail.com>
Subject Re: <replaceregexp>
Date Thu, 20 Oct 2005 16:00:44 GMT
On 20/10/05, Mikael Petterson (KI/EAB) <mikael.petterson@ericsson.com> 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">

you have: *
should be: .*

you have: [A-Z0-9]
should be: [A-Z0-9]+

try this:
<regexp pattern="\(.*&#34;CUSTOM_APPL_REV&#34; VALUE = &#34;[A-Z0-9]+&#34;\)"/>

http://regex.info/

HTH
Jakob.

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


Mime
View raw message