"this is a dog".replace("dog","cat");// > "this is a cat""this is a cat".replace(/cat/, "unicorn");// > this is a unicorn"i'm a dog, i'm a dog, i'm a dog".replace(/dog/, "bird");// > i'm a bird, i'm a dog, i'm a dog"i'm a bird, i'm a bird, i'm a bird".replace(/bird/g, "dog");// > i'm a dog, i'm a dog, i'm a dog
"I have a dog, cat, and mouse".replace("dog","stick").replace("cat","rock").replace("mouse","dirt");//I have a stick, rock, and dirt. :-(
var template = '<label>{{label}}<inputplaceholder="{{placeholder}}"></input></label>';