2020年7月24日

摘要: 1、特殊字符作为分隔符时需要使用\\进行转义(如\\ -> \\\\; | -> \\| ) 特殊字符 .$|()[{^?*+\\ 例如对"|"分隔 未转义 String str = "01|02|03"; String[] strArr = str.split("|"); System.out.p 阅读全文

posted @ 2020-07-24 15:33 keeplovingjava 阅读(400) 评论(0) 推荐(0)