0 votes
in React Hooks by
What is the difference between ([PQR]+) and  ([PQR])+?

1 Answer

0 votes
by

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. 

...