I have a file with the following lines (condensed example, real file is 1.000+ lines):
...
type1.value1=60 <-- replace 60 with 72 from line 5
type1.value2=15 <-- replace 15 with 14 from line 6
type2.value1=50 <-- replace 50 with 72 from line 5
type2.value2=18 <-- replace 18 with 14 from line 6
type3.value1=72
type3.value2=14
...
I want to replace all values from type(x) with the values from type3. There are many type/value combinations, so i would like to avoid handwork. Also, i have to do this really often.
Is that possible with Notepad++ Regex find/replace?
The matching expression is the following, where the first group should stay the same and the second should be replaced by the result of yet anoter regex.
^type1.([\w]+)=([\S]+)