jquery replace multiple words in string code example Example: replace all punctuation in string java inputString.replaceAll("\\p{Punct}", "");