Connie,

This is what I am looking for!  But all I get is','.

Thanks,

Jerry

-----Original Message-----
From: Connie Chan [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 3:34 PM
To: [EMAIL PROTECTED]; Beginners Perl
Subject: Re: another reg needed


> $_ = "Die,Row 0, Column 12"

do you trying to get this ?

my ($row, $col) = ($1, $2) =~ m/^.+(\d+).+(\d+)$/;
# $row = 0;
# $col = 12;

/^ means beginning of line
..+ means anything
\d+ means 1 more more digit numbers
(xxx) capture matched values within blankets in order to $1, $2...$x.
$/ means the end of the line.

> 
> What I want is the 0 and 12.  What about the text?
> 

So what do you want to deal with the text ? 

Rgds,
Connie


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to