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 $_ ).
In reply to Re: pattern matching
by Dog and Pony
in thread pattern matching
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |