Home > Backend Development > PHP Tutorial > 一个正则写法解决方案

一个正则写法解决方案

WBOY
Release: 2016-06-13 13:23:13
Original
805 people have browsed it

一个正则写法
第一种形式:

。。。。 
第二种形式:。。。 
第三种形式:。。。。。 

我正则式这样写的:#(.*)#

$click_confition='#(.*)#';
preg_match_all($click_confition,$content,$click);

上面$click出来 第一种形式 如何使第二种和第三种也能出来呢?

如何写成这样:#(.*)#

又不对,哎正则有点难度


------解决方案--------------------
#]*class="nums"[^>]*>(.*)#
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