- A ('444', '4444')
- B 4444
- C 444-4444
- D 444
Python Programming Language MCQ Python RegEx Module MCQ
⚠ Report ✓ Question Verified Copy Link
import re
x = re.compile(r'(\d\d\d)-(\d\d\d\d)')
y = x.search('The phone number is 444-4444')
print(y.groups())
Learn More MCQ Questions from Python Programming Language MCQ Python RegEx Module MCQ