This is a weird question, as it looks like you have answered it yourself.
Hmm... do you mean, how can you search and replace many instances? If so, you could either write your own script or use a text editor. For example, Notepad++ is free to download and has a very powerful search-and-replace feature. If you search online, you'll find lots of usage examples. For example, see this: [link].