Here you can find the source of rmvSpecial(String baseStr)
public static String rmvSpecial(String baseStr)
//package com.java2s; public class Main { public static final String[] SPECIAL_CHARACTER_CODES = new String[] { """, "<", ">", ">", "—", "@" }; public static final String[] SPECIAL_CHARACTER_SYMBOLS = new String[] { "\"", "<", ">", ">", "\'", "@" }; public static String rmvSpecial(String baseStr) { String rmvStr = baseStr;// w w w . j a v a2 s . c om for (int i = 0; i < SPECIAL_CHARACTER_CODES.length; i++) { rmvStr = rmvStr.replaceAll(SPECIAL_CHARACTER_CODES[i], SPECIAL_CHARACTER_SYMBOLS[i]); } return rmvStr; } }