Use re.search not match to ensure that there is at least one character.