Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
to only get failure.'foo' =~ /(?'name'(?=o)(\w+))(?{print $name})/ # or 'foo' =~ /(?'name'(?=o)(\w+))(?{print $-1})/ Number found where operator expected at (eval 23)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Code expressions in regex refer to the regex group captured, by name / relative
by haukex (Archbishop) on Jan 14, 2022 at 01:49 UTC | |
|
Re: Code expressions in regex refer to the regex group captured, by name / relative
by LanX (Saint) on Jan 14, 2022 at 02:13 UTC |