Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #regex #insert #string
ADD COMMENT
Topic
Name
4+9 =