String s = "cnblogs.com"; String str[] = s.split("\\."); 因此,点号的转义字符是“\\.”。 转载于:https://www.cnblogs.com/Java1030/archive/2011/06/19/2084511.html