(filepath)
return re.match(r'.*[/\\]([^/\\]+?)(\..{2,5})?$', filepath).group(1)
Return file name without extension
Return file name without extension
Return file name without extension
def util_gen_name_part(filepath):
    '''Return file name without extension'''
    return re.match(r'.*[/\\]([^/\\]+?)(\..{2,5})?$', filepath).group(1)
def util_gen_name_part ( filepath ) : return re . match ( r'.*[/\\]([^/\\]+?)(\..{2,5})?$' , filepath ) . group ( 1 )