Home > Backend Development > PHP Tutorial > 如何正则匹配连续的数字

如何正则匹配连续的数字

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 11:37:03
Original
1619 people have browsed it

怎么正则匹配连续的数字?
①$number = 1234784;
正则匹配结果是:1234

②$number = 389456723;
正则匹配结果是:4567

正则 数字
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