Use Regex In If Statement Python 3