Home > Backend Development > PHP Tutorial > php 中正则的子模式问题

php 中正则的子模式问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-02 11:27:33
Original
1272 people have browsed it

子模式正则php

preg_ match('/(\d){2}/','abc12ef',$arr)
为什么子模式输出的是2,而不是1呢?

Related labels:
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