删除重复字符js代码
>
<script type="text/vbscript">
<!
dim str
str="您好欢迎来到"
set regex = new regexp
regexpattern = "(({}?){})"
regexglobal = true
regexignorecase = true
set matches = regexexecute(str) 执行搜索
for each match in matches 循环遍历matches集合
alert("重复的字符:" & matchsubmatches())
alert("整个重复的字符:" & matchsubmatches())
next
//>
</script>