gt; From: "Nikola Janceski" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; "Connie Chan" <[EMAIL PROTECTED]>; "Beginners Perl"
><[EMAIL PROTECTED]>
> Sent: Saturday, August 17, 2002 4:53 AM
> Subject: RE: another reg needed
>
> >
well i think the following is general
@my_array = /(\d+)/g ; # is much much better.
thanx
-
Get a bigger mailbox -- choose a size that fits your needs.
http://uk.docs.yahoo.com/mail_storage.html
On Friday, August 16, 2002, at 02:20 , Nikola Janceski wrote:
[..]
Nikola - thank you for working the space
but I fear that this is one of those
well it works
> this is right:
> ($row, $col) = /(\d+)/g;
>
I know that the OP had proposed
$_ = "some stuff here"
but I t
t; To: Nikola Janceski; '[EMAIL PROTECTED]'; Connie Chan; Beginners Perl
> Subject: RE: another reg needed
>
>
> doh... forgot the ~
>
> ($row, $col) =~ /(\d+)/g;
>
> > -Original Message-
> > From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
&g
"Beginners Perl"
<[EMAIL PROTECTED]>
Sent: Saturday, August 17, 2002 4:53 AM
Subject: RE: another reg needed
> probably what you wanted is:
>
> ($row, $col) = /(\d+)/g;
>
> > -Original Message-
> > From: Jerry Preston [mailto:[EMAIL PROTECTED]]
doh... forgot the ~
($row, $col) =~ /(\d+)/g;
> -Original Message-
> From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 16, 2002 4:54 PM
> To: '[EMAIL PROTECTED]'; Connie Chan; Beginners Perl
> Subject: RE: another reg needed
>
>
probably what you wanted is:
($row, $col) = /(\d+)/g;
> -Original Message-
> From: Jerry Preston [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 16, 2002 4:49 PM
> To: Connie Chan; Beginners Perl
> Subject: RE: another reg needed
>
>
> Connie,
>
>
> -Original Message-
> From: Jerry Preston [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 16, 2002 4:19 PM
> To: Beginners Perl
> Subject: another reg needed
>
>
> Hi,
>
> I am trying to learn to do reg's and I am not sure how to
> break this
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
> $_ = "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
Subject: another reg needed
Hi,
I am trying to learn to do reg's and I am not sure how to break this down:
$_ = "Die,Row 0, Column 12"
What I want is the 0 and 12. What about the text?
Thanks,
Jerry
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Hi,
I am trying to learn to do reg's and I am not sure how to break this down:
$_ = "Die,Row 0, Column 12"
What I want is the 0 and 12. What about the text?
Thanks,
Jerry
12 matches
Mail list logo