PDA

View Full Version : replacing line in file...


jbrown0099
10-09-2007, 12:05 PM
I have read the documentation on how to do this but still do not understand. Below is the line which I want replaced.

<property name="version" value="McK-10.1.0.0"/>

This is what I want to replace it with. The only thing that will change is the 10.1.0.0. However, it will not always be 10.1.0.0. I just want to be able to replace what is between the McK- and the "/>. Any help would be much appreciated. Thanks.

<property name="version" value="McK-%Version%"/>

kinook
10-09-2007, 12:29 PM
See attached sample (I wasn't sure if you wanted to replace with the value of a %Version% macro or the literal string %Version%, so the sample shows both).