The regular expression '(\d{4})-(\d{2}-(\d\d))' has 4 groups.

Each set of parentheses in a regular expression defines a capturing group. In this case, there are four sets of parentheses, indicating four distinct groups.

Number of Groups in Regular Expression: '(\d{4})-(\d{2}-(\d\d))'