On Wed, 21 Nov 2001 09:49:19 -0000, you wrote:
>hi,
> how does one extract *just* the matched text in a regular expression,
>e.g.
>
>my $text = "Hello 1234, come in";
>if ($text =~ /\d{4,4}/)
>{
> #grab just the 4 digit number
>}
>
>thanks$1 contains the text in () in secound () is $2 and so far hope it helps martin -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
