Java regular expression to remove all non alphanumeric characters EXCEPT spaces

前端 未结 5 1829
轮回少年
轮回少年 2020-12-28 15:27

I\'m trying to write a regular expression in Java which removes all non-alphanumeric characters from a paragraph, except the spaces between the words.

This is the co

5条回答
  •  情话喂你
    2020-12-28 16:28

    Please take a look at this site, you can test Java Regex online and get wellformatted regex string patterns back:

    http://www.regexplanet.com/advanced/java/index.html

提交回复
热议问题