regex corrected for overly greedy collection