sum tweaks with regexps