In addition to matija's suggestion, you appear to need to also take into account lines which do not contain the expires, date, and time fields. In those cases, even with matija's example, your status variable would be undefined (or blank.)
In reply to Re: Parse backup log
by Belgarion
in thread Parse backup log
by mrbbq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |