Ask Ben: Javascript String Replace Method
strReplaceAll2 = strText.replaceAll(
"th"
,
"[X]"
) alert( strReplaceAll2 );
For Cut-and-Paste
strReplaceAll2 = strText.replaceAll( "th", "[X]" ) alert( strReplaceAll2 );