熟习正则表达式的大侠看过来

WBOY
Release: 2016-06-13 12:47:23
Original
1061 people have browsed it

熟悉正则表达式的大侠看过来
小弟遇到点问题

现在从数据库读取一段字符串,使用正则表达式判断是否含有“http://”字符串
并且处理成标签可点击的

目前小弟纠结的是,如果连续的“http://”挨在一起正则就只能判断为一个连接了,不知道该怎么处理了-――

水平有限啊。。。

例如“http://dfhakoadghttp://daidgjiadpugidua”

识别成http://dfhakoadg和http://daidgjiadpugidua

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template