in reply to Re: Regular Expressions: Call for Examples
in thread Regular Expressions: Call for Examples
prints:my $string = "whateversomecapture_rewhatever"; my $qr = qr|whatever(somecapture_re)whatever|; my ($captured) = $string =~ m/$qr/; print $captured, " ", $1;
somecapture_re somecapture_re
|
|---|