regular expressions the rest of the expression,?\ *(\ { })finds the year then we use the results to create the abbreviated date the only tricky part here is the first partwhich takes the month namechanges it to all lowercaseand takes only the first three characters and uses those as keys to dictionary this wayas long as the user correctly spells the first three letters of the month namethe program will understand it