```{index} single: regnames; re function ``` ```{index} single: re::regnames; Perl function ``` # regnames Return the names of the named capture groups in the most recent successful match. With no argument (or a false one), you get the names that were actually visited during the match. With a truthy argument, you get every name declared by the pattern, whether or not it participated. ## Synopsis ```perl use re 'regnames'; "foobar" =~ /(?
foo)(?