Thank you bdonlan.
Your post told me that this is not my regEx, but my use of the replace function.
I have tried:
MyString.replace(/\{0\}/, "test");
And it should have been:
MyString = MyString.replace(/\{0\}/, "test");
Thanks again!
a source
to share