The string is formated as '[DATE] record flag: X1.X2.X3.X4.YEAR.NUM;', where DATA is a date string; there is one or two spaces between : and X1; X1, X2, X4 are composed of one or more chars; X3 consisits of zero or more chars; YEAR and NUM are 4 and 3 digits, respectively.
Here is an exmaple: s = '[2011-03-13] record flag: NW.SENSOR..MH1.2011.012;'
How do I cut 'NW' and 'SENSOR' from s?