def _extract_tomcat_version(tomcat_version_out):
 match = re.search('Server version: (.*)', tomcat_version_out)
 if (match is None):
  return None
 match_version = match.group(1).split('/')[1].strip()
 return match_version

def _extract_tomcat_version ( tomcat_version_out ) : match = re . search ( 'Server version: (.*)' , tomcat_version_out ) if ( match is None ) : return None match_version = match . group ( 1 ) . split ( '/' ) [ 1 ] . strip ( ) return match_version
extracts tomcat version in format like 7 .