📜  比较两个字符串忽略空格 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:13.686000             🧑  作者: Mango

代码示例1
if(a.replaceAll("\\s+","").equalsIgnoreCase(b.replaceAll("\\s+",""))) {
   // this will also take care of spaces like tabs etc.
}