Please Guide me how to replace all in string
i want to replace rep with " ".
getting the value of id is dynamically from payload.
var rep = "ID"+" "+id+"_"; msg.payload=s.replace(rep," ");
This is working for single message. when multiple message is getting it replace only 1st message i want to replace all messages.
please guide me how to replace all string.