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

php 中正则的子模式问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-02 11:27:331273browse

子模式正则php

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

Statement:
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