📌  相关文章
📜  正则表达式匹配任意数量的数字 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:18.493000             🧑  作者: Mango

代码示例2
For matching an integer number of one single char/digit, specify:
[0-9]
But for matching any number of more than one char/digit; add "+":
[0-9]+
Example for matching hour with minutes of HH:MM format in a file:
grep "[0-9]\+\:[0-9]\+" file.txt