LeetCode【125. 验证回文串】

        s = s.replaceAll("\\pP","");//去除标点,字符串中只剩数字,字母,汉字
        s = s.replace(" ","");//去除字符串中空格
posted on 2019-05-08 15:29  imimtks  阅读(91)  评论(0编辑  收藏  举报