×
Home About Us Products Services News Free Scripts Contact
news php scripts and software

JavaScript & DHTML example - How to use the JavaScript regular expression replace method?


JavaScript & DHTML - How to use the JavaScript regular expression replace method?

myString = "javascript, 'JAVASCRIPT', JavaScript";
document.write(myString+"<br><br>");
	 
	 
myString=myString.replace(/javascript/ig, "---''$1''---");
document.write(myString);
myString.replace(/^.*\'([^\']*)\'.*$/, "---''$1''---")

Category: JavaScript & DHTML

 
<< Go back