So this is what my current metal_map_layout looks like: http://pastebin.com/9z7DRmSB
My question: what is the best way (in Notepad++ or the like) to replace all those different metal values with a single value (2.15)? I've been trying with regular expression but I don't understand it too well and each time get stuck at "it doesn't work and I have no idea why".
Replacing a range of values in metal map with single value
Moderator: Moderators
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Replacing a range of values in metal map with single val
This works in Komodo Edit, which may be the same in NP++:
Code: Select all
metal = [\d\.]*}
metal = 2.15}
Re: Replacing a range of values in metal map with single val
Nope just invalid expression error.
I learned that alt-click in column and type the value manually works. As of now that seems like the best way for Notepad++.
I learned that alt-click in column and type the value manually works. As of now that seems like the best way for Notepad++.
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Replacing a range of values in metal map with single val
That is painful for me to read.The Yak wrote:Nope just invalid expression error.
I learned that alt-click in column and type the value manually works. As of now that seems like the best way for Notepad++.
Re: Replacing a range of values in metal map with single val
I used:
Replace: metal\s*\=\s*[\d\.]+
With: metal = 2.15
and it worked.
Replace: metal\s*\=\s*[\d\.]+
With: metal = 2.15
and it worked.