refine regex to match [amc]time