['__class__', '__copy__', '__deepcopy__', '__delattr__', '__doc__',
    '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__',
    '__hash__', '__init__', '__le__', '__lt__', '__ne__', '__new__',
    '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__',
    '__str__', '__subclasshook__', 'findall', 'finditer', 'flags',
    'groupindex', 'groups', 'match', 'pattern', 'scanner', 'search',
    'split', 'sub', 'subn']
how can i obtain pattern string from compiled regexp pattern in python