摘要: replaceAll() 方法使用给定的参数 replacement 替换字符串所有匹配给定的正则表达式的子字符串。 public String replaceAll(String regex, String replacement)regex ———— 匹配此字符串的正则表达式newChar —— 阅读全文
posted @ 2020-01-08 15:01 Bardzx 阅读(1250) 评论(0) 推荐(0)
摘要: Java中的 split 函数是用于按指定字符(串)或正则去分割某个字符串,结果以字符串数组形式返回。 (一)一个参数(只包括正则) splitpublic String[] split(String regex) Splits this string around matches of the g 阅读全文
posted @ 2020-01-08 14:49 Bardzx 阅读(8372) 评论(0) 推荐(0)