Whats wrong with this regexpr?
$string = "Report Total:2300,150.17
1352,768.15554,392.38277,186.72 84,321.84 31,481.08";
if ($string=~ m/Report Total:\s
([\d,.]+)\s
([\d,.]+)\s
([\d,.]+)\s
([\d,.]+)\s
([\d,.]+)\s
([\d,.]+)
From: "Paul Kraus" <[EMAIL PROTECTED]>
> Whats wrong with this regexpr?
>
> $string = "Report Total:2300,150.17
> 1352,768.15554,392.38277,186.72 84,321.84 31,481.08";
>
>
> if ($string=~ m/Report Total:\s
> ([\d,.]+)\
t work.
if (/Report Total:\s+
[\d,.]+/x){
print "\$&=$&\n";
}
??
> -Original Message-
> From: Jenda Krynicky [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 19, 2002 11:46 AM
> To: Perl
> Subject: Re: This sho
From: "Paul Kraus" <[EMAIL PROTECTED]>
> ok I knew that :) for some reason I was thinking \s meant any white
> space that follows but it just means any 1 white space character
> without quantifiers.
>
> Ok so then why does this work
> if (/Report Total:\s+[\d,.]+/){
> print "\$&=$&\n";
> }