展会信息港展会大全

删除重复字符js代码 android软件开发教程
来源:互联网   发布日期:2016-03-01 13:07:23   浏览:2147次  

导读:删除重复字符js代码 -- script type=text/vbscript !-- dim str str=您好,欢迎来到 set regex = new regexp regex.pattern = ((.{1,3}?)2{2,}) regex.global = true regex.ignorecase = true set matches = regex.execute(str) ' 执行搜索。 for each match...

删除重复字符js代码

-->

<script type="text/vbscript">

<!--

dim str

str="您好,欢迎来到"

set regex = new regexp

regex.pattern = "((.{1,3}?)2{2,})"

regex.global = true

regex.ignorecase = true

set matches = regex.execute(str)' 执行搜索。

for each match in matches' 循环遍历matches集合。

alert("重复的字符:" & match.submatches(1))

alert("整个重复的字符:" & match.submatches(0))

next

//-->

</script>

赞助本站

人工智能实验室

相关热词: 开发 编程 android

AiLab云推荐
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港