used re.match() instead of re.search(), but the former only looks for regex match at start of the string