Regex to Remove a Word from a String

In this post we will see how we can remove a particular word from a string entirely in jQuery.

  1. var newString= oldString.replace(/Unspecified/g, '');  

Here I am removing the word Unspecified from my variable oldString.

Please see my other posts related to JQuery here: JQuery Posts.