Python Regex Create Pattern From Image