Newbie question on Re module

Jørgen Cederberg jorgencederberg at hotmail.com
Sat Jan 4 11:24:19 CET 2003


Josh <mlsj at earthlink.net> wrote in message news:<Xns92F5826AE2F65jslmAAearthlinknet at 130.133.1.4>...
> 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

Hi Josh,

not exactly an answer, but another link
(http://db.cs.helsinki.fi/~hendry/python/). It is a playground area,
where you can enter some input and a regular expression, and then see
the results. Somewhat faster than using the interactive shell.

Regards
Jorgen




More information about the Python-list mailing list