tidy up reading STDIN
parameterise the REGEX search/replace
improve matching and add month numbers