Checksum regex refactoring