![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Regex backreference without captureby QM (Parson) |
on Mar 01, 2019 at 12:17 UTC ( #1230709=perlquestion: print w/replies, xml ) | Need Help?? |
QM has asked for the wisdom of the Perl Monks concerning the following question:
Is it possible to have a capture for the purposes of backreferences, but not returned as part of the match?
(In fact, I suspect the above doesn't work because, while there is eventually a 2nd capture group, it hasn't captured anything before the backreference. But that isn't really the point here.) I don't really have a specific need, but it just seems interesting to say "this capture is only for backreference, and not for returning as a capture". -QM
Back to
Seekers of Perl Wisdom
|
|