- Original Message -
From: Marcelo E. Magallon <[EMAIL PROTECTED]>
To: M.W. Koskamp <[EMAIL PROTECTED]>
Cc: Brent Buckalew <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, June 03, 2001 7:58 PM
Subject: Re: probably a simple matter but...
> >>
>> "M.W. Koskamp" <[EMAIL PROTECTED]> writes:
> \s* will match any number of spaces ([0-9.\-]*) will match the
> largest sequence of any character since there is a dot in the
> expression.
No. A '.' inside a character class is literal.
--
M.
Hi,
>> Brent Buckalew <[EMAIL PROTECTED]> writes:
> other. What happens is that it reads in the numbers until there is a
> negative number. When it reaches a negative number, it places the
> remaining text in that variable.
I used your regular expression but I can't reproduce the proble
On Jun 3, M.W. Koskamp said:
>> #sample of the text
>> Nitrogen 0.0 -5.78 0.0 0.0 0.0
>>
>> #sample of the program.
>> while(){
>>
>> if (/(Nitrogen) *([0-9.\-]*) *([0-9.\-]*) *([0-9.\-]*) *([0-9.\-]*)
>> *([0-9.\-]*)
>> /) {
>> if ($2 <= 0.0) {
>> $name = $1; $nitrogen1 = $2; $nitrogen2 =$3;
- Original Message -
From: Brent Buckalew <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 03, 2001 9:28 AM
Subject: probably a simple matter but...
> Hello all,
>
> I've constructed a perl script which takes number from a large text file
> and prints them as well as manip