How do you replace all instances of ${...} in a javascript string? Example:
var before = "My name is ${name} and I like ${sport} because ${sport} is challenging."
becomes
var after = "My name is Bob and I like soccer because soccer is challenging."
I tried following the best answer from Replace multiple strings with multiple other strings, but you cannot have a key that starts with a symbol...
Many thanks!