php正则表达式抽取email地址函数
a target=_blank href=http://list.qq.com/cgi-bin/qf_invite?id=08f814f703c7b4139f32b06cc2f7c0c1fd1b46f032c64622 rel=nofollow/a a href=http://qita.in/bMv target=_blank rel=nofollowimg alt=填写您的邮件地址,订阅我们的精彩内容:

function extract_emails_from($string) { //加入对#的判断,这个你懂的^_^ http://blog.ddian.cn preg_match_all("/[\._a-zA-Z0-9-]+(@|#)[\._a-zA-Z0-9-]+/i", $string, $matches); return $matches[0]; }
- 上一篇:php解析json数组
- 下一篇:php颜色转换函数hex-rgb
精彩图集
精彩文章