小编Twi*_*ter的帖子

什么是正则表达式匹配以下10位数字?

什么是正则表达式匹配以下10位数字:

0108889999 //can contain nothing except 10 digits 
011 8889999 //can contain a whitespace at that place
012 888 9999 //can contain two whitespaces like that
013-8889999 // can contain one dash
014-888-9999 // can contain two dashes
Run Code Online (Sandbox Code Playgroud)

php preg-match

2
推荐指数
1
解决办法
1397
查看次数

标签 统计

php ×1

preg-match ×1