import re

text = """
Hello Prashant

How is Bangalore treating you? Do you continue to be in the same company?

I wanted to check if you are around on September 10, 2023? I am coming there for an official visit on Sep 9 and would like to drop by your house in the evening of sept 10.

If that is not feasible, I may have to come back in October. Are you around on oct 10? or oct. 11?

Do let me know.
"""

#dates = re.findall(r'you\w?', text.lower())
months = ('jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec')
regex12 = ''
for mm in months:
    regex12 = regex12 + mm + '|'
regex12 = '(' + regex12[:-1] + ')'
finalregex = '(' + regex12 + r'[a-z.]*\s+\d\d?)(,?\s?\d{2,4})?'
#print(finalregex)
dates = re.findall(finalregex, text.lower())
#dates = re.findall(r'((sep|oct)[a-z.]*\s+\d\d?)(,?\s?\d{2,4})?', text.lower())
#dates = re.search(r'sep(\w)* \d\d?,? ?(\d{2,4})', text.lower())
#print(dates)
for onedate in dates:
    print(onedate)
#else:
#    print("No dates present.")

"""
Sep 10, 2022
sep 10 2022
September 10, 22
sept. 10 '22
"""
