Best ways to find/replace all instances of a word in a huge project

So, let me say straight away that I hate having to ask this question, not just because I'm terrified by the task, but also because I see this topic mentioned here and there in existing threads, and the consensus seems to be that taking any shortcuts here is let's just say contraindicated.

I do still have to ask though, since I'm staring down having to manually replace just a millionty billion uses of this word (it's just a name that absolutely has to get changed), and I am guaranteed to miss a bunch just through the sheer number of events and show texts where it appears. Just the attempt to do this by hand would take weeks if not months.

I've run some tests just opening the map files in a text editor and find/replacing the name, and short of even causing issues, I seem to even be getting uneven results in these replaced instances even getting changed when I go to play the updated game! And this just seems like such a reckless approach to begin with.

I know for a fact that a full find/replace would break some faces and images, but only very few, so I'd be happy to fix those manually.

If anyone knows a reasonably safe way to do this -- or, dare I to dream, a plugin -- I'd be very appreciative of your advice.

Thank you!!
yes, but as said in other topics it has its own quirks.

you basically need a multifile text editor (for example textpad) and do a search and replace over every json file in your project. (with a multifile editor you open them all at once)

the main problem is that search and replace depends on the string searched and what other uses it might have - and you didn't tell what name it is.

Let's explain with a simple example:
you decide to change a stylistic decision and replace all uses of the word one with the digit 1
you make a general s&r and all uses of the word stone become st1

so the process is easy for unique words and names, but messes up a lot for words that are part of other words.

there are ways around this, but it all depends on the word/words used.
opening the map files in a text editor and find/replacing the name
That is the simplest way to do it, and it should have worked fine. Are you sure you replaced all instances? Maybe your search was case-sensitive?

Either way, assuming the name is fairly unique (i.e. it's never a part of another word), the best way would be to:
- Find with regex (?<="code":401,")([^}]*)Old Name
- Replace with $1New Name
This will replace the name in any message contents, while ignoring everything else (such as face filenames).

This can be done in any program that supports regex search. For example in Visual Studio Code you'd select Edit->Replace in Files, click the .* icon (to enable regex), and type the above two lines into "search" and "replace". It will even show you a nice preview of all changes before applying them, though obviously you should also backup your files first just in case.
Thanks all -- I can't think of any words the name would be a part of, but just to be sure, if I use regex how would I do this with case sensitivity? That way, I'd be sure to not accidentally grab any uncapitalized words just in case there are some I haven't yet thought of?
if I use regex how would I do this with case sensitivity?
In general, if it's not customisable, then case sensitivity is the default.
Otherwise, just make sure case sensitive mode is on in whatever software you're using (e.g. in Visual Studio Code click on the Aa icon).
Notepad++ has a lot of options with Find & Replace that can help with not grabbing the wrong words, like matching case, etc.

Plus, you can Find & Replace semi-manually, making sure you're reading what you want it to replace before you hit the button to do so, or skip to the next one. I use this all the time to change words in my database, too.

In general, if it's not customisable, then case sensitivity is the default.
Otherwise, just make sure case sensitive mode is on in whatever software you're using (e.g. in Visual Studio Code click on the Aa icon).

@Mac15001900 you are a dynamo. Insane how much help you've provided us all.

@Coolie Notepad++ is my jam ... wasn't aware of the slower way to F&R but will check it out. Thank you!!
This thread is closed due to being reported as solved. If you need it reopened, let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/best-ways-to-find-replace-all-instances-of-a-word-in-a-huge-project.168635/