import rem=re.match(r'^(\d{3})-(\d{3,8})$','010-12345')print(m.group(0))# your code goes here# your code goes here
Standard input is empty
010-12345
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!