最近发了个帖子,好多朋友留下了邮箱,我现在需要把一个文件发给这些邮箱。
我从帖子里复制了所有文本,但不知道怎么才能把里面的邮箱筛选出来。
高手给个代码啊。
我从帖子里复制了所有文本,但不知道怎么才能把里面的邮箱筛选出来。
高手给个代码啊。
解决方案 »
- 关于$("#rb_del").attr("disabled", false);兼容谷歌浏览器的问题
- js怎么用正则表达式把非英文和数字的字符替换成空格?可以吗
- var data=[{a1:1,a2:2,a3:3,a4:4}];怎么获取a2
- 请问直接引用google的jquery和google.load有什么区别
- [求助]为什么脚本运行后,背景色没有变呢?
- var r = "abc".match(/^(\d{1,4);这样写不对吗
- 请教:比如在一道题中四个单选框(radio),那么怎么判断多个题目中的单选框被选中呢
- 谁能给一个使用javascript和数据库交互的树形图!或知道那有下在的!!在线等待!!立刻给分
- 哇,老孟,我真是服了你了
- js 怎么增加表格table
- 怎么把图片切换效果设置成 横向左右切换
- 想要个效果。jquery form
你好楼主 [email protected] 希望能得到您的图集![email protected] [email protected] [email protected] [email protected] 谢谢 呵呵相当需要[email protected] [email protected]
<div id="test">
[email protected] [email protected] ,谢谢了!
你好楼主 [email protected] 希望能得到您的图集![email protected] [email protected] [email protected] [email protected] 谢谢 呵呵相当需要[email protected] [email protected]
</div>
<script>
function $(o){return document.getElementById(o)}
var str = $('test').innerHTML;
var re = /\[email protected]/gi;
alert(str.match(re))
</script>全是qq的邮箱? 开头是 数字,,,取个巧。
var str = "[email protected] [email protected] ,谢谢了! 你好楼主 [email protected] 希望能得到您的图集![email protected] [email protected] [email protected] [email protected] 谢谢 呵呵相当需要[email protected] [email protected] ";
alert(str.match(/([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)/g));楼主这样可以吗?