in reply to Re: Regular Expressions: Call for Examples
in thread Regular Expressions: Call for Examples

my $string = "whateversomecapture_rewhatever"; my $qr = qr|whatever(somecapture_re)whatever|; my ($captured) = $string =~ m/$qr/; print $captured, " ", $1;
prints:
somecapture_re somecapture_re