<--- --------------------------------------------------------------------------------------- ---- Blog Entry: Ask Ben: Javascript String Replace Method Author: Ben Nadel / Kinky Solutions Link: http://www.bennadel.com/index.cfm?dax=blog:142.view Date Posted: Jul 17, 2006 at 7:36 AM ---- --------------------------------------------------------------------------------------- ---> // Let's take a look at the above example using regular expressions. strReplaceSimple = strText.replace( new RegExp( "th", "" ), "[X]" ); alert( strReplaceSimple );