On  Mon, 15 Jan 2001  at  01:21:59 GMT -0800 (which was 1:21 AM where
I live) witnesses say I typed:

JA> It could probably be done using a series of cascading Quick Templates
JA> and conditional regexps.  However, this is somewhat daunting at the
JA> moment.

JA> The basic setup would be something like:

JA> --- Quasi-Template ----
JA> 
%SETPATTREGEXP="(?(?=0?[0-2]\:\d\d)0?[0-2]\:[0-5][0-9]\sPM;(Afternoon);|.*;Afternoon;(.*))"%REGEXPBLINDMATCH="%TIME;Afternoon;%QINCLUDE=""Not
 Afternoon"""%SUBPATT="1"%SUBPATT="2"
JA> --- End Quasi-Template ---

Er, small typo.  That regexp should be:

--- Quasi-Template ----
%SETPATTREGEXP="(?(?=0?[0-2]\:[0-5][0-9]\sPM)0?[0-2]\:[0-5][0-9]\sPM;(Afternoon);|.*;Afternoon;(.*))"%REGEXPBLINDMATCH="%TIME;Afternoon;%QINCLUDE=""Not
 Afternoon"""%SUBPATT="1"%SUBPATT="2"
                              ^^^^^^^^^^^^^^
--- End Quasi-Template ---

Otherwise you would have unexpected results between "00:00 AM" and
"02:59 AM"
 

-- 
Thanks for writing,
 Januk Aggarwal

 Using The Bat! 1.49c under Windows 98 4.10 Build 2222  A

 I have an imaginary friend who refuses to play with me.

-- 
--------------------------------------------------------------
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   <mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, double click here and send the message:
   <mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------

You are subscribed as : [email protected]


Reply via email to