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

如何正则匹配连续的数字

WBOY
WBOYOriginal
2016-06-13 12:36:161434browse

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

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

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