implemented date regex into app.py for 'when' search