AFAIK, you can't have the colon without more digits, so the colon should actually be inside the new group, like this: `\d\d(?::?\d\d)?`