1. Perl
  2. Predefined variable
  3. here

Regular expression capture $1, $2, $3, ...

The strings captured by regular expression are assigned to "$1", "$2", and "$3" in order.

$1
$2
$3

After this, it continues with "$4" and "$5".

Related Informatrion