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?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
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?