伊拉克电话号码的java正则表达式

我需要一个正则表达式来匹配此电话号码模式:

  • 它总是以 07 开头

  • 然后后跟此范围 (3-9) 中的数字

  • 并且必须是 11 个字符

例如:07902848117

07796938209

07302819248


catspeake
浏览 87回答 1
1回答

拉风的咖菲猫

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.
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java