thsk(_at_)netcom(_dot_)com asked,
It is the DDHHMM that I'm looking to $MATCH. Here are some
examples:
MAZ501-504-161415-
MAZ002>004-NHZ011-012-022100-
MAC027-017-122315-
If you are willing to restrict the paging to a set of hours, you can
easily bypass the scoring and test for a string match. For example
:0 # Pick out HH after isolating DDHHMM in $DDHHMM
* DDHHMM ?? ^^..\/..
{
:0 # Only beep from 0700 to 2159 hours
* MATCH ?? (0[7-9]|1[0-9]|2[01])
!PAGER
}
Your can also negate the last match to check for hours during which not
to page. If you must restrict pages to a finer measure than hours, you
can add more tests, but era's scoring recipe is probably easier at that
point.
--
Rik Kabel Old enough to be an adult
rik(_at_)netcom(_dot_)com