Replace part of an expression from a line, in many documents
George RJ last edited by
Hi guys, ive been using notepad++ for a few years but i never started to actually USE it. If you know what i mean lol.
The thing is, i tried to find a guide about regular expressions but im completely lost and its everything too overwheelming.
I have several documents, and in all of em there is a line that follows as ->
spawn_rate : 0.05
So, the number is the thing i want to replace. I want to search in all documents the lines with spawn_rate : xx and replace em with spawn_rate: 0.01 (a fixed number for all lines).
Thanks in advance!.
Meta Chuh last edited by
welcome to the notepad++ community, @George-RJ
if you want to replace all digits, that match the pattern
1.23, open the replace window and enter the following:
then either replace one by one, or hit replace all.
note: if those numbers also exist on positions you don’t want to replace, and you want to explicitly replace
spawn_rateentries only, please enter the following:
spawn_rate : (\d.\d\d)
spawn_rate : 0.01
ps: if regex isn’t too overwhelming in general, please have a look at this faq section on where to find some understandable regex documentation for beginners: