Reemplace la cadena en Dart, reemplace la cadena en Dart usando Regex

var greetingTemplate = 'Hello, NAME!';
var greeting =
    greetingTemplate.replaceAll(RegExp('NAME'), 'Bob');

// greetingTemplate didn't change.
assert(greeting != greetingTemplate);
Distinct Dolphin