📌  相关文章
📜  颤振正则表达式验证 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:25.798000             🧑  作者: Mango

代码示例1
You could make the first part optional matching either a + or 0 followed by a 9. Then match 10 digits:

^(?:[+0]9)?[0-9]{10}$
^ Start of string
(?:[+0]9)? Optionally match a + or 0 followed by 9
[0-9]{10} Match 10 digits
$ End of string
Regex demo