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