Newbie question on Re module

Josh mlsj at earthlink.net
Tue Dec 31 13:49:20 EST 2002


I am trying to strip out all binaries groups from a list of newsgroups. 
Basically I wanted to write a regular expression that would match all non 
binaries groups. But this does not seem to work:
rgx=re.compile('[^(binaries)]'). My question is why not? How else would I 
write the regex? I am a newbie at Regexes so please be kind:)

Josh



More information about the Python-list mailing list