$newtime !~ m#^((\d{1,2}(-\d{1,2})?|\*)(/\d{1,2})?\s?){5}$# [download]
In reply to Re: simple pattern match ? by smokemachine in thread simple pattern match ? by Anonymous Monk