String.replaceAll() is not working

后端 未结 6 1638
野趣味
野趣味 2020-12-03 13:45

I am editing some email that got from tesseract ocr.

Here is my code:

 if (email != null) {
        email = email.replaceAll(\" \",         


        
6条回答
  •  北荒
    北荒 (楼主)
    2020-12-03 14:35

    You are using some regex characters.

    Please escape them using \ or by using Pattern.quote method

提交回复
热议问题