Fix int sum function regular expression