Please see perlre for more information specifically under capturing buffers.#!/usr/bin/perl use strict; my $string = 'to test me'; $string =~ /to\s(\w+)\s/; print $1;
In reply to Re: Print the matched pattern
by bichonfrise74
in thread Print the matched pattern
by kingjamesid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |