zjfz-2019-s439462/regexp/Task307.py
2020-01-24 16:18:52 +01:00

10 lines
222 B
Python

import re
def extract_phone_number(string_to_be_checked):
search = re.search("(0?61\\s\\d.\\d{3}.\\d{3})", string_to_be_checked)
if search is None:
return '<NONE>'
else:
return search.group()