import res = '093627, 09206277, 09129627173, 097177627878328218'print(re.findall(r'(?<!\d)(?=\d{11}(?!\d))09\d*62\d*', s))
Standard input is empty
['09129627173']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!