fix invalid codeTue, 28 Feb 2023

import re match = re.search(r'\d\d\D\d\d', r'Телефон 123-12-12') print(match[0] if match else 'Not found')

123-12-12

Questions about programming?Chat with your personal AI assistant