10 lines
222 B
Python
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()
|