import re


def get_start_int(val, default=-1):
	"""Function to see if the supplied val is an integer or starts with an integer, if so return that integer, otherwise return default."""
	match = re.search("^\d+", val)
	return int(match.group()) if match is not None else default