Search
 
SCRIPT & CODE EXAMPLE
 

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);
Comment

PREVIOUS NEXT
Code Example
Javascript :: Session Time Out 
Javascript :: jest check if button is disabled 
Javascript :: react native flatlist flex direction 
Javascript :: hydration in next js 
Javascript :: scirpt tag react 
Javascript :: $(...).DataTable is not a function 
Javascript :: react functional component example 
Javascript :: how to add icon in javascript 
Javascript :: how to run a react app 
Javascript :: write !important in react 
Javascript :: vue3 header 
Javascript :: how to check if an element is in array javascript 
Javascript :: add a class in react 
Javascript :: text slider in react js 
Javascript :: (node:15855) UnhandledPromiseRejectionWarning: MongooseServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017 
Javascript :: Check Object Is Instance Of Class 
Javascript :: window parent frames js 
Javascript :: skip map iteration javascript 
Javascript :: how to build and deploy a react app to github pages 
Javascript :: js add event listener 
Javascript :: react-native-shadow-generator 
Javascript :: inner function in javascript 
Javascript :: make a button who disable scrolling down the page react 
Javascript :: js str split 
Javascript :: The ".charAt()" JavaScript string method 
Javascript :: AJAX - The XMLHttpRequest Object 
Javascript :: convert string to array js 
Javascript :: javascript date range 
Javascript :: js push multiple arguments 
Javascript :: react image preview npm 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =