code: def find_version_by_string_lib(line):  # type: (str)->Optional[str]
      
      if not line:
          return None
      simplified_line = simplify_line(line)
      version = None
      if simplified_line.startswith("version="):
          if '"' not in simplified_line:
              pass
              # logger.debug("Weird version string, no double quote : " + unicode((full_path, line, simplified_line)))
          else:
              if "=" in simplified_line:
                  post_equals = simplified_line.split("=")[0]
                  if '"' in post_equals:
                      parts = post_equals.split('"')
  
                      if len(parts) != 3:
                          # logger.debug("Weird string, more than 3 parts : " + unicode((full_path, line, simplified_line)))
                          version = parts[0]
      return version
docs: No regex parsing. Or at least, mostly, not regex.