def _regexSearchRegPolData(search_string, policy_data):
 if policy_data:
  if search_string:
   match = re.search(search_string, policy_data, re.IGNORECASE)
   if match:
    return True
 return False

def _regexSearchRegPolData ( search_string , policy_data ) : if policy_data : if search_string : match = re . search ( search_string , policy_data , re . IGNORECASE ) if match : return True return False
helper function to do a search of policy data from a registry .