删除字符串中的重复文本 [英] remove duplicate text within a string

查看:118
本文介绍了删除字符串中的重复文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何删除字段中重复的文本。例如:

系列

---------

AC Delco AC Delco锥形扰流板

Bendix Bendix高性能扬声器

B& I B& I前照灯

普利司通Firestone Birdgestone Firestone AllWeather轮胎

解决方案

< blockquote>你可以用空格字符拆分字符串然后遍历数组寻找不同的单词。


我如何在sql中执行此操作。我在java脚本中有一个进程,但是我无法在Access中使用它。

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号


这将是一个先发制人。即从字符串中删除连续的单词:

展开 | 选择 | Wrap | 行号


How do I remove text that was duplicated within a field. For example:
Series
---------
AC Delco AC Delco Taper Spoiler
Bendix Bendix High Performance Altinators
B&I B&I Headlamps
Bridgestone Firestone Birdgestone Firestone AllWeather Tires

解决方案

You could split the string by the space character and then loop through the array looking for distinct words.


How do I go about doing that in sql. I have a process in java script but I can''t get it to work in Access.

Expand|Select|Wrap|Line Numbers


This would be a starter. i.e. remove successive words from string:

Expand|Select|Wrap|Line Numbers


这篇关于删除字符串中的重复文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆