Sublime Forum

How to change a lot of unspecific values for a lot of specific strings

#1

Is there a way to change a lot of unspecific values for a lot of specific strings? Example:

        <property class="Attributes">
		<property name="EntityDamage" value="8,14" />
		<property name="BlockDamage" value="3,12" />
		<property name="DegradationMax" value="50,600" />
		<property name="DegradationRate" value="5,1" />

	<property class="Attributes">
		<property name="EntityDamage" value="10,22" />
		<property name="BlockDamage" value="3,13" />
		<property name="DegradationMax" value="100,600" />
		<property name="DegradationRate" value="1,1" />

These are two different items in a game but I want to change just the “DegradationRate” “value” for both. If it were just these two items that would be fine but I have to change it for 1500 items.

0 Likes

#2

Regex find:

<property name="DegradationRate" value="(.*)"

And replace with:

<property name="DegradationRate" value="new value"
0 Likes