songbird wrote: ... > result = re.search("^/(tmp)|(var)|(usr)|(opt)|(home)", sysprobetmp)
i changed that line to: result = re.search("^/((tmp)|(var)|(usr)|(opt)|(home))", sysprobetmp) just to make sure the leading slash is not just grouped with the first string. i like to be more explicit with my precedence if i'm not sure what the language might actually do... :) songbird -- https://mail.python.org/mailman/listinfo/python-list