Removing certain characters from a string

前端 未结 8 1462
清酒与你
清酒与你 2020-12-05 10:46

I am thinking about using String.replaceAll() to remove certain characters in my string. It is unclear which characters are going to be removed (i.e. which char

8条回答
  •  生来不讨喜
    2020-12-05 11:19

    I guess the example code on your link is good enough which you can add other valid characters of your choice. But you can minimize the code using regular expression. Take a look at the code of Abdullah, or see more link1,link2, link3.

提交回复
热议问题