There is no need to use regex here, just do a .split() and take first item in the list as the checksum.