如何找到一个正则表达式来从字符串中删除所有的字母数字单词?
以下是我不成功的尝试:
假设我的字符串是:
以下是我不成功的尝试:
假设我的字符串是:
String mystring ="the food was thrill4 not2 that good 6son";
mystring = mystring.replaceAll("[0-9A-Za-z]","");
但它没有起作用。
期望的结果应该是:"这食物太好吃了"。
the
是一个字母数字单词,为什么应该被移除? - Barmar