I got this to work... just FYI: s = 'O:owner_sidG:group_sidD:dacl_flags(string_ace1)(string_ace2)...(string_acen)S:sacl_flags(string_ace1)(string_ace2)...(string_acen)'
SD = {} S = str.split(s, 'S:') SD['S_ACL'] = S[1] D = str.split(S[0], 'D:') SD['D_ACL'] = D[1] G = str.split(D[0], 'G:') SD['G_SID'] = G[1] O = str.split(G[0], 'O:') SD['O_SID'] = O[1] for k,v in SD.iteritems(): print k,v -- http://mail.python.org/mailman/listinfo/python-list