Write a computer program with a single regular expression to identify dates in text that comply with the following patterns (surrounded by word boundaries): i. mm/dd/yyyy ii. dd/mm/yyyy