prints:my $string = "whateversomecapture_rewhatever"; my $qr = qr|whatever(somecapture_re)whatever|; my ($captured) = $string =~ m/$qr/; print $captured, " ", $1;
somecapture_re somecapture_re
In reply to Re: Re: Regular Expressions: Call for Examples
by jryan
in thread Regular Expressions: Call for Examples
by japhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |