In re, the punctuation "^" can exclude a single character, but I want to exclude a whole word now. for example I have a string "hi, how are you. hello", I want to extract all the part before the world "hello", I can't use ".*[^hello]" because "^" only exclude single char "h" or "e" or "l" or "o". Will somebody tell me how to do it? Thanks. -- http://mail.python.org/mailman/listinfo/python-list
- How can I exclude a word by using re? could ildg
- Re: How can I exclude a word by using re? Christoph Rackwitz
- Re: How can I exclude a word by using re? could ildg
- Re: How can I exclude a word by using re? Bruno Desthuilliers
- Re: How can I exclude a word by using re? John Machin
- Re: How can I exclude a word by using re? Peter Otten
- Re: How can I exclude a word by using re? Jeff Schwab
- Re: How can I exclude a word by using re? John Machin
- Re: How can I exclude a word by using re? could ildg
- Re: How can I exclude a word by using re? Jordan Rastrick
- Re: How can I exclude a word by using re? Paul McGuire