Leading token: if the first whitespace-delimited token matches ^\d+[smhd]$ (e.g. 5m, 2h), that's the interval; the rest is the prompt. Trailing "every" clause: otherwise, if the input ends with every ...