fork download
  1. import re
  2. m=re.match(r'^(\d{3})-(\d{3,8})$','010-12345')
  3. print(m.group(0))
  4. # your code goes here
  5. # your code goes here
Success #stdin #stdout 0.14s 15520KB
stdin
Standard input is empty
stdout
010-12345