Hi,

I tried the following;

 <replaceregexp file="index.htm" match="^.*\("CUSTO_APPL_REV".*VALUE = 
"[A-Z0-9]"\)"   replace ="\1${product_number_html}\_${product_revision_html}"/>

but the " seems to mess up the match.

This is the line:

<PARAM NAME = "CUSTOM_APPL_REV" VALUE = "R11A02">

cheers,

//mikael

-----Original Message-----
From: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED]
Sent: den 20 oktober 2005 14:29
To: Ant Users List
Subject: RE: <replaceregexp>


Hi,

I need to replace "R11A02" in my xxx.html file with
R12A02 and next time R13A02 ..... I need to do a search and replace.

This is what we tried:

<replaceregexp file="index.htm"
     match=\"CUSTO_APPL_REV\"\s+VALUE\s+=\"[\d\D]+\"  
        replace ="\1 \"${product_number_html}_${product_revision_html}\""/>

cheers, 

mikael

-----Original Message-----
From: Nicolas Vervelle [mailto:[EMAIL PROTECTED]
Sent: den 20 oktober 2005 14:17
To: Ant Users List
Subject: Re: <replaceregexp>


<propertyregex> from Ant Contrib ?

Otherwise, could you be more specific ?

Mikael Petterson (KI/EAB) wrote:

><PARAM NAME = "CUSTOM_APPL_REV"
>              VALUE = "R11A02">
>
>How can I replace the R11A02 with a new number?
>
>cheers,
>
>//mikael
>
>---------------------------------------------------------------------
>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]


---------------------------------------------------------------------
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]

Reply via email to