docs: def search(document, search):
      '''Search a document for a regex, return success / fail result'''
      result = False
      searchre = re.compile(search)
      for element in document.iter():
          if element.tag == '{%s}t' % nsprefixes['w']:  # t (text) elements
              if element.text:
                  if searchre.search(element.text):
                      result = True
      return result