二刷125. Valid Palindrome

Easy
就记一下取string里的alphanumeric characters用正则表达式s = s.replaceAll("[^A-Za-z0-9 ]","")
去掉所有空格s = s.replaceAll(" ","")

你可能感兴趣的:(二刷125. Valid Palindrome)