Capturing groups are regular expression constructs that makes use of capturing in regex to capture parts of the matched string during a match sequence in the regexp pattern.
Capturing groups and backreferences are regular expression constructs that makes use of capturing in regex to perform matching and replacement that remembers parts of the matched string during a match sequence in the regexp pattern.
Read more: