+ 1

# Please help me

Howto solve this problem in python ??? 2. This is a program to analyze mobile numbers using match() function. Note: re.compile() complies a regular expression pattern into a regular expression object, which can be used for matching using its match() or search(). Mobile phone number in Korea starts with 3 digit numbers followed by 3~4 and 4 digits fixed customer numbers. (e.g., 010-2345-5678 or 010-234-5678) <Output> ('010', '123', '45

1 Answer

+ 4

use this
x=re.compile(r'(\d{3} | \d{4})')