我有一个列,其中一个特定的字符串出现多次。出现的次数不是固定的。我可以多次得到这样的字符串。
示例:列说明包含以下数据
The account account has been cancelled for the account account account and with the account
这里基本上我想用单个帐户替换多个并发帐户
预期产量:
The account has been cancelled for the account and with the account
我有一个列,其中一个特定的字符串出现多次。出现的次数不是固定的。我可以多次得到这样的字符串。
示例:列说明包含以下数据
The account account has been cancelled for the account account account and with the account
这里基本上我想用单个帐户替换多个并发帐户
预期产量:
The account has been cancelled for the account and with the account
1条答案
按热度按时间bqucvtff1#
您可以使用regex模式(源代码:java正则表达式来删除重复的单词)和
regexp_replace
要替换重复的单词: