Answers for "javascript regex insert string"

0

javascript regex insert string

var str = "Tell us about this interaction. Make sure you mention: (a) what the interaction was about (hangout, chit chat, discuss assignments, etc.) (b) what other things you and/or your friend was doing on the phone during this interaction (c) whether both of you were involved in this other activity and (d) any other information about this interaction you would like to share with us. Avoid using your friends full real name";
var pat = /\([a-zA-Z]\)/g;
var out = str.replace(pat, "<br>$&");
document.write(out);
Posted by: Guest on August-16-2021

Code answers related to "javascript regex insert string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language