> Hi all, > > It seems the regex to detect time changed from > > t.match(/(\d\d\:\d\d)\s*(.*)/) > > to > > t.match(/(\d\d\:\d\d)\s+(.*)/) > > There's a subtle difference there, with the * vs + after \s. I'm no > regex wiz, but if I recall correctly, + is 1-n occurrences, whereas * is > 0-n occurrences. Is there any other difference?
no I think thats it... > > Any reason not to change it back? It looks like it wouldn't match if no alarm text was specified, and there were no spaces after the time string... (I bet the spaces wouldnt be passed anyway).. I bet the alarm function works if some alarm text is specified like 'alarm 20:00 staff meeting'.. Anyway I would change it back... IMO of course.. Monty ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ DQSD-Devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dqsd-devel
