in reply to pattern matching
Should take care of most of your cases, including 1 day.my ($uptime) = /(\d+ days?, \d+:\d+)/;
(This assumes that your original string is in the special variable $_ ).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: pattern matching
by Anonymous Monk on Jun 04, 2002 at 00:24 UTC |