Both are matching PQR ,
-([PQR]+) put PQR saved in first back reference.
-([PQR])+ , first time P was saved , second time Q was saved and third time R was saved. + causes the pair of parenthesis to repeat three times.