What is the use of $1, $2, … etc in regex?
$1, $2 refers the capturing groups. $1 means first capturing group$2 means first capturing group…. etc.These are mainly used for replacement. Lets see an exampleWe…
Notifications