[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

revisiting the "What am I running on?" question

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...  :)