revisiting the "What am I running on?" question
songbird
songbird at anthive.com
Sun Feb 17 22:08:46 EST 2019
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
More information about the Python-list
mailing list