我需要一個正則表達式來匹配此電話號碼模式:它總是以 07 開頭然后后跟此范圍 (3-9) 中的數(shù)字并且必須是 11 個字符例如:079028481170779693820907302819248
1 回答

拉風(fēng)的咖菲貓
TA貢獻1995條經(jīng)驗 獲得超2個贊
Try this, it should work.
"07[3-9][0-9]{8}"
What this mean is,
07 - it tries to find literally 07
[3-9] - then followed by 3 to 9, only one time
[0-9] - then followed by 0 to 9
{8} - text previous to this should has at least 8 characters.
添加回答
舉報
0/150
提交
取消