Like the title suggests i want help with quickly replacing numbers from a long text file that come after a specific line of words

(to be more specific im trying to modify some game files)


build_time = 730

and i want to replace it with

build_time = 1

But the problem is i dont know how to do this , and this type of line repeates itself randomly thruout the text document with random 3-digit ,2-digit and even 4 digit numbers

Note that i do NOT want to replace the words or move them in the document, just the number that comes after such line of text

Is there a way i can use notepad++ to do this?


This can be done in Notepad++ using the find and replace tool mixed with regular expressions.

For example, use build_time = \d+ as the Find and use build_time = 1 as the replace.

Make sure your search mode is set to Regular Expression

  • 1
    Thank you very much! Feb 2 '20 at 11:50
  • @TheGrandKnjaz If this helped you out, please accept the answer to help people in the future! :)
    – ditrapanij
    Apr 6 '20 at 10:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.