I'm trying to make a code which finds {} sentences in string.
In example the string is:
var object = { username: "Matt", name: "Not Matt's server"};
var string = "Welcome to {name}, {username}!";
It finds {username} and {date} then replace them to values in other object, so the value should:
"Welcome to Not Matt's server, Matt!";