JavaScript Word Substitution In A String
CSGNetwork FREE Source Code, Javascript Source, and Code Snippets!
CSGNetwork Custom Search
     Bookmark and Share
Top Free Apps

Right click this window and select "view source" in order to copy the source for this script.

JavaScript Word Substitution In A String

View Source...

This will substitute all instances of the word "the" with "xxx". This will find and change any chosen word that is preceded by and followed by a space or is the last word. It does not find/change words that are preceded by or followed by non-space characters. The key is the name word as opposed to a string of characters.

Bookmark and Share
Registered® Trademark™ and Copyrightę 1973 - CSG, Computer Support Group, Inc. and CSGNetwork.Com All Rights Reserved