import rem = re.search(r"^\d{4,}?([12]\d{7})", "6278041121932517")if m: print(m.group(1))
Standard input is empty
11219325
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!