小编Mut*_*nan的帖子

从字符串php正则表达式中提取大于4位数字

preg_match_all('/(\d{4})/', $text, $matches);
Run Code Online (Sandbox Code Playgroud)

使用上面的函数,我们可以从给定的字符串中提取精确的 4 位数字。

如何使用正则表达式提取包含大于 4 位数字的数字..

有没有办法在正则表达式中指定最小长度?

php regex preg-match-all preg-match

3
推荐指数
1
解决办法
7898
查看次数

标签 统计

php ×1

preg-match ×1

preg-match-all ×1

regex ×1