A non-captured and a captured part of a pattern.

\w (\w)

Named group.

(?<foo>\w)

Non-capturing group. If you want to use brackets to make a group such as to make it be repeated, but donโ€™t care about capturing it.

(?:\w) (\w)

Match any one of these groups:

(abc def)|(Foo bar)(fizz)