fork(2) download
  1. import re
  2. date_reg_exp2 = re.compile(r'\d{2}([-/.])(\d{2}|[a-zA-Z]{3})\1(\d{4}|\d{2})|\w{3}\s\d{2}[,.]\s\d{4}')
  3. matches_list = [x.group() for x in date_reg_exp2.finditer("23-SEP-2015 and 23-09-2015 and 23-09-15 and Sep 23, 2015")]
  4. print matches_list
Success #stdin #stdout 0.02s 9016KB
stdin
Standard input is empty
stdout
['23-SEP-2015', '23-09-2015', '23-09-15', 'Sep 23, 2015']