Re: I want to exclude an expression of a sequence of charecters with regex

2005-12-28 Thread 28tommy
Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: I want to exclude an expression of a sequence of charecters with regex

2005-12-27 Thread Fredrik Lundh
"28tommy" wrote: > I know how to exclude 1 charecter from a compiled sequence of the re > module- '[^a]', but if I want to exclude a word or a sequence as one > unit (not as separate charecters) to be checked how do I do that? > > I tried re.compile('[^(abc)]') > ... or re.compile('[^a][^b][^c

I want to exclude an expression of a sequence of charecters with regex

2005-12-27 Thread 28tommy
Hello all, I know how to exclude 1 charecter from a compiled sequence of the re module- '[^a]', but if I want to exclude a word or a sequence as one unit (not as separate charecters) to be checked how do I do that? I tried re.compile('[^(abc)]') ... or re.compile('[^a][^b][^c]') ... or re.com