Thanks Chad, that did the trick perfectly!

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Fri, July 22, 2005 2:43 pm, Chad Armstrong said:
> Hi Frank,
>   The * looks a little weird below in the "match" string, * means 0 or
> more of the preceding character, which I don't think is what you want.
> Try it with .* instead and see if that helps.
>
> Chad
>
> On 7/22/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>> Hi all... having some trouble getting a regex replace to work... I have
>> a
>> JSP which contains the following line:
>>
>> <!--Version--><span class="cssAboutVersion">Version 3.0<br>Build
>> 3063<br>01/01/2005</span><!--EndVersion-->
>>
>> I have a task in my build script like so:
>>
>> <replaceregexp file="${toa_base_dir}/jsp/systemAbout.jsp"
>> match="&lt;!--Version--&gt;*&lt;!--EndVersion--&gt;"
>> replace="&lt;!--Version--&gt;&lt;span
>> class=&quot;cssAboutVersion&quot;&gt;Version
>> ${project_version}&lt;br&gt;Build
>> ${next_build_number}&lt;br&gt;${build.datetime}&lt;/span&gt;&lt;!--EndVersion--&gt;"
>> byline="true" />
>>
>> But, nothing is getting replaced.  The file exists and is found, and all
>> the properties are properly defined previously, it just seems to not be
>> finding the matching text.  Any ideas?  Thanks!
>>
>> --
>> Frank W. Zammetti
>> Founder and Chief Software Architect
>> Omnytex Technologies
>> http://www.omnytex.com
>>
>> ---------------------------------------------------------------------
>> 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