How to replace a string with RegExp in typescript?

I want to replace a string with a variable.
For example my string is ‘Hello {{world}}’ and I want to replace {{world}} with another text. The string to be replaced is always between accolade {{}} How can I do this with RegExp in typescript?