import re

text = '''Hi, today is 17-Apr-2021, yesterday was 16-Apr-2021 and tomorrow will be 18-Apr-2021.
My schedule is free on 26-04-2021, 06.05.2021 and 16/Jun/2021.
You can reach out to me at myname2020@dummy.com 
or ask_help@demo.net & conference@demo.co.in
You can also call me at one of the following no's +6032-007 1212
, +6099.100 3344, 017-9998800 etc.'''

#PATTERN = re.compile(r'\d{2}[-\./]([a-zA-Z]{3}|\d{2})[-\./]\d{4}') #date pattern
#PATTERN = re.compile(r'\w+@[a-z]+(\.[a-z]{2,3})+') #email pattern
PATTERN = re.compile(r'(\+\d)?\d{3}[-\.]\d{3}\s?\d{4}') #phone number pattern

#matches = PATTERN.search(text) #searches 1st instance of the match
matches = PATTERN.finditer(text) #iteratively matches every instance of the match

for i in matches:
    #print(i)
    print(i.group()) #returns the match value

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: