- Perl ›
- Predefined variable ›
- 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".
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".