java中string.replaceAll()方法

replaceAll() 方法使用給定的參數 replacement 替換字符串全部匹配給定的正則表達式的子字符串。html 語法 public String replaceAll(String regex, String replacement) 參數 regex -- 匹配此字符串的正則表達式。正則表達式 newChar -- 用來替換每一個匹配項的字符串。google 返回值 成功則返回替換
相關文章
相關標籤/搜索