how to search and replace in Windows Registry

Regedit doesn’t allow to search for a string and replace it in any occurrence so here’s a quick workaround:

open regedit and export required tree as a text (.reg) file
search and replace in it using your favorite text editor (I suggest Notepad++ but notepad works) and save it
import the file from within regedit

Note: if the [...]