commit with regex