Added regex to support python iso format and javascript date.toJSON()