Update regexp, isolating code to be executed only in command line mode, adding day of week in first line messages